At the moment the docker cli to download is a beta version
You can download it from releases page https://github.com/mars-86/docker-cli/releases
Use docker on windows from command line.
- turn windows features on or off
- enable windows subsystem for linux
- enable virtual machine platform
- wsl --update
- wsl --set-default-version 2
You will need to install mingw if you download the docker-cli version without libraries.
Just run install.bat and it will install docker cli on user's root folder
Run docker command from console.
- Install mingw https://www.mingw-w64.org/
- Add bin folder to path
- Clone the repository
- Run compile.bat
It should generate a bin folder with an executable file inside every module and install.bat on root folder
You may have problems due to antivirus, specifically McAfee.
- The operation could not be started because a required feature is not installed.
-> enable virtual machine platform (https://github.com/mars-86/docker-cli/tree/main#prerequisites). - Daemon does not starts on init or stops unexpectedly
-> go to %USERPROFILE%\docker-cli\daemon\ and run dockerd.exe manually. - WSL stops instances after windows sleeps (microsoft/WSL#8763)
-> go to edit plan settings and change all the options in "choose what the power buttons do" to hibernate,
also go to "change when the computer sleeps" and set the options under "put the computer to sleep" to never.
MIT