Note: For Podman on Windows, see the 1st-party installation guide.
- Clone or download this repository
- In an Administrator prompt, run the
Install-ContainerRuntime.ps1
script
# Defaults to podman, add -Docker to install docker-ce instead
.\scripts\Install-ContainerRuntime.ps1
By default, the shims created by the installation scripts do not support absolute paths for mounting.
Instead you will have to either use relative paths or rewrite C:\
to /mnt/c/
and use forward slashes.
Alternatively, consider installing the WslInterop
module for easier access from PowerShell.
Some applications automatically resolve localhost
to 127.0.0.1
(IPv4), which Windows doesn't forward to WSL, without checking the Windows hosts
file.
This means you may experience problems connecting to the containers running in WSL when using localhost
.
If you do experience this, try swapping localhost
/127.0.0.1
for ::1
(TCP), [::1]
(HTTP), or simply wsl
.
Refer to the WSL troubleshooting page.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue.