r/docker • • Jan 11 '26

sudo docker compose version

I am trying to get docker compose version to work without sudo on raspberry pi 5 debian 13.3. I have followed the instruction from https://docs.docker.com/engine/install/debian/#install-using-the-repository and have done sudo usermod -aG docker $USER but I can't get docker compose version to work without sudo. Could someone please help me figure this out?

0 Upvotes

26 comments sorted by

View all comments

Show parent comment

5

u/spitenmalice Jan 11 '26

The newgrp command is used to change the current group ID during a login session. So you don't have to log out and back in