Skip to content
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

27 lines (18 sloc) 498 Bytes

Run Docker commands without sudo

1. Add the docker group if it doesn't already exist
$ sudo groupadd docker
2. Add the connected user $USER to the docker group

Optionally change the username to match your preferred user.

$ sudo gpasswd -a $USER docker
3. Restart the docker daemon
$ sudo service docker restart

If you are on Ubuntu 14.04-15.10, use instead:

$ sudo service restart
You can’t perform that action at this time.