Created
March 10, 2023 23:47
-
-
Save darkmavis1980/920dbcd5df58e0727b080c1cb79e1c9a to your computer and use it in GitHub Desktop.
Fix Docker Permission Denied WSL 2
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
sudo addgroup --system docker | |
sudo adduser $USER docker | |
newgrp docker | |
# And something needs to be done so $USER always runs in group `docker` on the `Ubuntu` WSL | |
sudo chown root:docker /var/run/docker.sock | |
sudo chmod g+w /var/run/docker.sock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment