Docker: How do I add myself to the docker-users group on windows 10 home?

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 solve this on Windows 10 Home? All the examples I find are for enterprise or pro versions of Windows.

1

5 Answers

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
5

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
1

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.

In my case, I just uninstall and reinstall the docker. And it fine now.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like