Alex Dai Playground

[Docker] without sudo

| Comments

Add the docker group

$ 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

Ubuntu 14.04 and up use docker.io instead

$ sudo service docker.io restart

Than

$ newgrp docker or log out/

Comments

comments powered by Disqus