Ricardo
Ricardo

Reputation: 81

Error when manage docker as a non-root user

I want to use docker without sudo and follow the guidance from this question. And here is what I did: 1.

sudo groupadd docker

and it showed

groupadd: group 'docker' already exists

2.

sudo gpasswd -a <username> docker

and it showed

Adding user <username> to group docker

3.

newgrp docker

and it showed the error:

newgrp: failed to crypt password with previous salt:invalid argument

I have tried to find more about this error,

newgrp: failed to crypt password with previous salt:invalid argument

but there is very limited information on the internet.

What leads to this error?

Upvotes: 6

Views: 9094

Answers (1)

Arvydas97
Arvydas97

Reputation: 146

If someone has same error try:

  1. sudo usermod -aG docker $USER
  2. newgrp docker

This worked for me

Upvotes: 12

Related Questions