How to fix docker: Got permission denied issue

前端 未结 19 1135
醉话见心
醉话见心 2020-11-28 00:15

I installed Docker in my machine where I have Ubuntu OS. After than I installed docker, when I run

sudo docker run hello-world

All it\'s ok

19条回答
  •  借酒劲吻你
    2020-11-28 00:42

    Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/images/json: dial unix /var/run/docker.sock: connect: permission denied

    sudo chmod 666 /var/run/docker.sock
    

    This fix my problem.

提交回复
热议问题