Last active
January 16, 2017 20:49
-
-
Save karantir/ef539854afc8428612a0 to your computer and use it in GitHub Desktop.
Run docker w/o sudo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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