WSL安装Docker Engine

Ubutnu 20.04LTS-Install using the apt repository

Set up the repository

  1. Update the apt package index and install packages to allow apt to use a repository over HTTPS:

  1. Add Docker’s official GPG key:

  1. Use the following command to set up the repository:

Install Docker Engine

  1. Update the apt package index:

  1. Install Docker Engine, containerd, and Docker Compose.

  1. 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