Skip to content

Instantly share code, notes, and snippets.

@philipz
Last active August 29, 2015 14:05
Show Gist options
  • Save philipz/7aa79ecc279c24eb6c67 to your computer and use it in GitHub Desktop.
Save philipz/7aa79ecc279c24eb6c67 to your computer and use it in GitHub Desktop.
Ubuntu docker without sudo

Giving non-root access

# 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.
# If you are in Ubuntu 14.04, use docker.io instead of docker
$ sudo service docker restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment