How to Solve – You must be in the docker-users group error?
Issue with Docker-Desktop on Windows Machine.
Well, after the docker desktop installation, you might get the error “You are not allowed to use Docker. You must be in the docker-users group” on the windows platform.
This error typically comes after the docker desktop installation. When you install docker desktop, docker local group docker-users is created and the user who has installed the software should be part of that group.
How to get docker-users members?
In windows machines, there are methods to get the local group members.
Using GUI
Open Computer Management by typing compmgmt.msc command in the run and “Local Users and Groups” -> Groups and open “docker-users” group. UserName should appear for a person that has installed software. If the docker-users group is not visible then the installation might have gone wrong and you may need to reinstall the software.
Check if the user is already there then you need to restart the computer once to take effect of the installed software from that user. If not then you need to add a user to this group.
Using Command Line
Alternatively, you can use CMD or PowerShell command to get the docker-users group members.
Cmd command.
Get-LocalGroupMember docker-users
PowerShell command,
Get-LocalGroupMember docker-users