Docker command can't connect to Docker daemon

后端 未结 23 3166
有刺的猬
有刺的猬 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:28

    Giving non-root access - from docker

    Add the docker group if it doesn't already exist.

    $ sudo groupadd docker
    

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

    Change the user name to match your preferred user.

    You may have to logout and log back in again for this to take effect.

    $ sudo gpasswd -a ${USER} docker
    

    Restart the Docker daemon.

    $ sudo service docker restart
    

提交回复
热议问题