GHA

Permission Denied While Trying to Connect to the Docker Daemon Socket

January 7, 2022  -   3 mins read time -   497 words -  garrardkitchen

docker, linux, github actions, GHA, self-hosted runner, dotnet, Azure Container Registry, acr, containers, pods

Out of the blue today, my first day back after Christmas break, I got this when running a GH Actions Workflow on one of our Self-Hosted Linux Runners 😱: 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 We have several GitHub Self-Hosted Runners running on Linux and Windows O/S that produce, amongst other artefacts, Linux and Windows images. ...