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?
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?
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\ .
your-user-id is your local Windows user name. you can determine this by looking at the folder name under C:\Users\ . For example if you have: C:\Users\Joe Bloggs and you know that this is the user logged in, then your-user-id is Joe Bloggs with the double quotes around it, so the full command would be: net localgroup docker-users "Joe Bloggs" /ADD. I found this to work in my case - the command reponse was: The command completed successfully. Further advice from above is then to restart your machine for this change to take effect.
Aug 6, 2022 at 14:24
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
Try restarting the system, that worked for me, as it pushed me to the group automatically.
If you are installing Docker Desktop from Chocolatey, you might only need a restart, as you are put in that group automatically.