"docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/create

https://docs.docker.com/engine/install/linux-postinstall/

 

  1. To manage Docker as a non-root user, follow the Docker Post-Installation Steps for Linux instructions. 
  2. To create the Docker group and add your user:

    1. Create the Docker group.
      sudo groupadd docker

 

    1. Add your user to the Docker group.

sudo usermod -aG docker $USER


    1. Log out and log back in so that your group membership is re-evaluated.

 

    1. Verify that you can run docker commands without sudo.

docker run hello-world 

 

 

https://www.digitalocean.com/community/questions/how-to-fix-docker-got-permission-denied-while-trying-to-connect-to-the-docker-daemon-socket

 

https://phoenixnap.com/kb/cannot-connect-to-the-docker-daemon-error

 

https://github.com/docker/for-linux/issues/535

 

posted on 2020-12-31 11:26  cdekelon  阅读(153)  评论(0)    收藏  举报

导航