WSL安装Docker Engine
Ubutnu 20.04LTS-Install using the apt repository
Set up the repository
Update the
apt
package index and install packages to allowapt
to use a repository over HTTPS:
Add Docker’s official GPG key:
Use the following command to set up the repository:
Install Docker Engine
Update the
apt
package index:
Install Docker Engine, containerd, and Docker Compose.
Verify that the Docker Engine installation is successful by running the
hello-world
image.
sudo usermod -aG docker mumu使普通用户可以使用docker,重新登陆并重启服务
如果还是不行,使用sudo chmod 666 /var/run/docker.sock
Last updated