Created
February 27, 2020 01:38
-
-
Save shufengh/3c5fce505201e4fa8eef44510b5e95b0 to your computer and use it in GitHub Desktop.
fix-linux-docker-perm.sh
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
if your docker complains about permission denied to access a socket, try | |
sudo groupadd docker | |
sudo usermod -aG docker $USER | |
newgrp docker | |
# Fix existing permission issues | |
sudo chown "$USER" /home/"$USER"/.docker -R | |
sudo chmod g+rwx "$HOME/.docker" -R |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment