Docker snap: Docker-compose permission denied

I added the docker group and added my user to the group, as instructed in snap info docker. But I still cannot use docker-compose without using sudo.

This is the exception that docker compose give me if I just run it normally for my project:

docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))

Did something change? Do I need to do something else to add the permissions?

did you log out and back in again ? the newgrp command only applies to the current terminal you are issuing it in but not to anything else of your session …

Aye, that was it. When I logged in this morning I tested again and all was working. Learn something new every day.

1 Like