Win10 can also use docker seamlessly

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
Insert picture description here

Then install the WSL update package

Insert picture description here
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
Insert picture description here
directly after the download is complete. After the installation is complete, set
Insert picture description here
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.
Insert picture description here
If your docker-compose command reports the following error, you
Insert picture description here
need to set docker-desktop
Insert picture description here

Guess you like

Origin blog.csdn.net/a807719447/article/details/111982337