On a fresh install of Leap 16.0, I installed docker and docker compose. I am using a compose file that worked on another machine. It’s throwing permission error on Leap. I have added my user to docker group. How do I fix this?
dozzle-agent | {"level":"fatal","version":"v8.14.12","error":"failed to create docker client: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get \"http://%2Fvar%2Frun%2Fdocker.sock/v1.51/info\": dial unix /var/run/docker.sock: connect: permission denied","time":"2025-12-16T20:04:48Z","message":"Failed to run command"}
I had that once under 15.6 too.
I think I did the following:
Systemctl stop docker.
Then /var/run/docker.sock was still there.
I deleted docker.sock and restarted docker.
Hope that helps you.
I had a similar issue – looks like it is indeed SELinux. I don’t know what the proper solution is, but this person on Reddit has a band-aid. I’ve added this to my compose.yaml: