Last active
January 10, 2017 19:39
-
-
Save aluedeke/7977839 to your computer and use it in GitHub Desktop.
docker without sudo
This file contains 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 "${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. | |
sudo service docker restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
..thanks