Docker command can't connect to Docker daemon

后端 未结 23 3135
有刺的猬
有刺的猬 2020-12-02 04:01

I want to make a move to Docker, so I\'ve just started to mess around with it. I\'ve installed Docker on a VirtualBox Ubuntu 15.10 (Wily Werewolf) installation and as sugges

23条回答
  •  既然无缘
    2020-12-02 04:18

    Add the user to the docker group

    • Add the docker group if it doesn't already exist:

      sudo groupadd docker

    • Add the connected user "${USER}" to the docker group:

      sudo gpasswd -a ${USER} docker

    • Restart the Docker daemon:

      sudo service docker restart

    • Either do a newgrp docker or log out/in to activate the changes to groups.

提交回复
热议问题