How to fix docker: Got permission denied issue

前端 未结 19 1136
醉话见心
醉话见心 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:45

    You can always try Manage Docker as a non-root user paragraph in the https://docs.docker.com/install/linux/linux-postinstall/ docs.

    After doing this also if the problem persists then you can run the following command to solve it:

    sudo chmod 666 /var/run/docker.sock
    

提交回复
热议问题