Created
February 14, 2018 00:11
-
-
Save rangelvarnier/e6a456ce205b34ca717709eca49e93d1 to your computer and use it in GitHub Desktop.
Running docker as non root user
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
If you are a single user and don't want to enter your password everytime while executing docker command, you have to add the current user in docker group. | |
#this is most likely already created while installing docker | |
$ sudo groupadd docker | |
$ sudo gpasswd -a $USER docker | |
# you might need to logout if the changes are not working | |
$ newgrp docker | |
# check if docker is working without sudo | |
$ docker run hello-world |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment