1

On Ubuntu 22.04, I've installed docker, added myself to the docker group with sudo usermod -a -G docker user, and logged out/in.

However, I still get "permission denied" errors when running docker commands. In /etc/group, I see

docker:x:133:user

but docker doesn't show up when I run groups.

Daniel Walker
  • 801
  • 1
  • 9
  • 35

1 Answers1

1

Jumping on what @Stephen-Kitt said, systemctl status --user confirmed that after logging out and back in picked up my old session. Even after a reboot!

I read somewhere rebooting from the terminal will start a new user session and thereby picking up your new groups.

sudo reboot now fixed it for me.

groups then finally had the docker group in for me in a new terminal session.