Skip to content

Instantly share code, notes, and snippets.

@spudfkc
Last active January 4, 2016 16:49
Show Gist options
  • Save spudfkc/8649919 to your computer and use it in GitHub Desktop.
Save spudfkc/8649919 to your computer and use it in GitHub Desktop.
# SOURCE: http://www.ludeke.net/2013/12/run-docker-commands-without-sudo.html
# Add the docker group if it doesn't already exist.
sudo groupadd docker
# Add the connected user "${USERNAME}" 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 ${USERNAME} docker
# Restart the docker daemon.
# this may be called docker.io if on Ubuntu 14.04
sudo service docker restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment