Skip to content

Instantly share code, notes, and snippets.

@darkmavis1980
Created March 10, 2023 23:47
Show Gist options
  • Save darkmavis1980/920dbcd5df58e0727b080c1cb79e1c9a to your computer and use it in GitHub Desktop.
Save darkmavis1980/920dbcd5df58e0727b080c1cb79e1c9a to your computer and use it in GitHub Desktop.
Fix Docker Permission Denied WSL 2
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