Last active
June 19, 2019 19:49
-
-
Save kylehounslow/e265db52cad10a8ae7191b5f3f389b9a to your computer and use it in GitHub Desktop.
Run docker with sudo in Ubuntu
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
# Create new group if it does not exist | |
sudo groupadd docker | |
# Add current user to the group | |
sudo gpasswd -a $USER docker | |
# Reload shell in order to have new group settings applied | |
newgrp docker | |
# Test everything worked | |
docker run hello-world |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment