Skip to content

Instantly share code, notes, and snippets.

@karantir
Last active January 16, 2017 20:49
Show Gist options
  • Save karantir/ef539854afc8428612a0 to your computer and use it in GitHub Desktop.
Save karantir/ef539854afc8428612a0 to your computer and use it in GitHub Desktop.
Run docker w/o sudo
# add the docker group if it doesn't already exist.
sudo groupadd docker
# Add the connected user to the docker group.
sudo gpasswd -a ${USER} docker
# Restart the Docker daemon
sudo service docker restart
# Activate the changes on groups
newgrp docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment