WSL (Windows Subsystem for Linux): The built-in linux kernel of win10, that is, dual systems can be used under win10.
Then we need to enable WSL subsystem support, Control Panel -> Programs -> Enable or disable the windows function
Then install the WSL update package
Just perform the relevant configuration directly according to the above interface. Then you can click on the app store to install the corresponding version of ubuntu through the above interface.
Then install the docker-desktop
download link and install it
directly after the download is complete. After the installation is complete, set
the docker_host in ubuntu to the remote port configured externally.
echo "export DOCKER_HOST=tcp://localhost:2375" >> ~/.bashrc && source ~/.bashrc
Install docker-ce
official website address in ubuntu : https://docs.docker.com/engine/install/ubuntu/
Grant the current user to run Docker CLI with root privileges
sudo usermod -aG docker $USER
Install docker-compose. If the version you installed does not have pip, you need to install it yourself. If there is pip and no soft link, you need to add a soft link yourself
pip3 install --user docker-compose
Then use the command to check whether the installation is normal
docker info
Check the next version, if the version does not correspond, set the next version.
If your docker-compose command reports the following error, you
need to set docker-desktop