Winthainer is a little toolset which uses the wsl to provide container functionality on Windows.
There are literally three components:
-
WinthainerDistribution
-
Alpine based wsl distribution with installed docker engine
-
-
WinthainerService
-
Tray application which launches dockerd inside WinthainerDistribution
-
-
WinthainerCommand
-
CLI tool to "proxy" commands to docker cli inside WinthainerDistribution
-
-
Dowload latest Winthainer Release
-
Extract WinthainerDeployment.zip
-
Run WinthainerInstaller.exe
To use Winthainer you have to start the WinthainerService. It manages the container runtime daemon inside wsl.
WinthainerService.exe
WinthainerCommand.exe run hello-world
After that, you should see the output of the hello-world container.
Commands like
WinthainerCommand.exe run -it -v C:\Mount:/mnt ubuntu /bin/bash
or
WintainerCommand.exe run -dit -p 8080:80 -v ${PWD}:/usr/local/apache2/htdocs/ httpd:2.4
will work.
WinthainerCommand translates Windows paths to the equivalent WSL path. The used path have to be mounted inside wsl. Auto mount is active by default in wsl, so it should work. Otherwise, you have to mount it manually.
You can now use WinthainerCommand like Docker/Podman CLI