Reputation: 4928
I am getting the following error:
The current user is not in the 'docker-users' group. Add yourself to the 'docker-users' group and then log out and back in to Windows.
How do I resolve this error on Windows?
Upvotes: 136
Views: 286922
Reputation: 2301
Run this command from an administrator command window to add your user id to the docker-users group and log back into your user account for it to take effect.
net localgroup docker-users "your-user-id" /ADD
your-user-id
is your local Windows user name. You can determine this by looking at the folder name under C:\Users\
or use in the command window whoami
to show it.
TIP: You probably will need to restart the system, to make the change active.
Upvotes: 230
Reputation: 168
I faced exact same issue, just uninstalled and then re-installed docker desktop it worked.
Upvotes: 1
Reputation: 4502
In my case, I just uninstalled and reinstalled the docker and it is fine now.
Upvotes: 0
Reputation: 7383
If you are installing Docker Desktop from Chocolatey, you might only need a restart, as you are put in that group automatically.
Upvotes: 4
Reputation: 188
Try restarting the system, that worked for me, as it pushed me to the group automatically.
Upvotes: 6
Reputation: 589
It might occur that the user-group "docker-users" not exist on your machine. In that case enter the following commands in the Powershell
New-LocalGroup -Name 'docker-users' -Description 'docker Users Group'
Add-LocalGroupMember -Group 'Administrators' -Member ('docker-users') –Verbose
Add-LocalGroupMember -Group 'docker-users' -Member ('Username','Administrators') –Verbose
Upvotes: 16