Docker Community Forums

Share and learn in the Docker community.

Ubuntu - Can't join docker group

This is in Ubuntu
steve@steve-P5E:~$ sudo groupadd docker
groupadd: group ‘docker’ already exists
steve@steve-P5E:~$ sudo gpasswd -a ${steve} docker
gpasswd: user ‘docker’ does not exist

what am I doing wrong?


$ sudo usermod -G docker -a ‘steve’

it didn’t error so i think that did it

1 Like

try id -nG
It will show the username from which Your are loging from