CS-WIKI101
Loading...
Searching...
No Matches
FAQ

FAQ

Table of contents

  • Errors
    • Docker Rancher - Permission Denied when using docker from WSL

Errors

Docker Rancher - Permission Denied when using docker from WSL

Relate issue

stackoverflow issue: https://stackoverflow.com/q/72528606/22440363

github issue: https://github.com/rancher-sandbox/rancher-desktop/issues/1156#issuecomment-1017042882O

$ docker ps
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json": dial unix /var/run/docker.sock: connect: permission denied

Solution

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

Need assistance? Check out my discussion board or review the GitHub status page.

© 2023 AppleBoiy • Code of Conduct • [MIT License](LICENSE)

Back to Top