Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start Docker without AD domain connection #785

Open
slafave opened this issue Jun 1, 2017 · 51 comments
Open

Unable to start Docker without AD domain connection #785

slafave opened this issue Jun 1, 2017 · 51 comments

Comments

@slafave
Copy link

slafave commented Jun 1, 2017

Expected behavior

When running outside my company network with my VPN disconnected, I should be able to start and use Docker.

Actual behavior

After updating to the newest edge build, 17.06.0-rc1-ce-win13 (12433), I get an error "Unable to start Docker, you must be part of the docker-users group". It is only when I connect my VPN or connect to the internal company network, thereby getting a connection to a domain controller, that I can start docker. My AD account is indeed part of the local docker-users group, but the docker startup security check seems to only validate that local group membership if it can verify my AD account with an AD DC.

Information

  • A5DA733E-F0E6-4FCE-9066-01021758BEA2/2017-06-01_13-40-30
  • Windows 10 Enterprise 1703 Build 15063.332

Steps to reproduce the behavior

  1. Update to the latest edge version, 17.06.0-rc1-ce-win13 (12433)
  2. Start your machine without a connection to your company AD
  3. Try and run Docker, receive the "not in docker-users group" message
  4. Connect VPN or connect to company internal network.
  5. Start Docker - this time it starts and is usable
@jasonbivins
Copy link

Hi @slafave thanks for posting this.

I am able to reproduce this so I'll go ahead and report it as a bug. We should have a fix out for it soon.

As a possible workaround for your problem - Make sure your local windows user on your laptop is a part of the docker-users local group. You should see it in computer management.

image

Thanks!
Jason

@gregpakes
Copy link

gregpakes commented Jun 1, 2017

I have the same issue, but my machine is not Domain-Joined. It is workplace-joined, so I am skeptical about access to the DC's being a factor for me.

Sadly, I am unable to test as I have downgraded to the stable version, as I need to use Docker today.

@QAnders
Copy link

QAnders commented Jun 2, 2017

This is an issue for me too. Exact same behaviour and it runs fine if I connect to corporate VPN. I have access to Users and Groups on my local laptop (Admin) but when disconnecting VPN the "local user" is no longer authorized to run Docker.

@MartinGroh
Copy link

I have the same problem as well. I use AzureAD.

For the workaround.
I put my user in a local “docker-users” group, but to no avail. I tried to add my local admin account and lunched run docker as admin, but the result is the same.

@jasonbivins
Copy link

Hi @MartinGroh Did you add your local admin account, or your actual local user account to the docker users group? I'm able to work around the issue by adding my local user account.

@devsaurabh
Copy link

devsaurabh commented Jun 2, 2017

Tried to run it as Run as different user and provided credentials for another local user account (COMPUTER_NAME\{your_local_user_account}) which is member of docker-user group. It worked. Though not sure, rest will run as expected or not.

@MartinGroh
Copy link

@jasonbivins

I run as my Azure user, so the “only” local user I have is the admin.
I have both my Azure user in the local “docker-users” group and admin. I tried to run docker from my admin user after adding the account to the group, but I get the same message, that I’m not in the “docker-users” group.

@friism
Copy link

friism commented Jun 2, 2017

@gregpakes @MartinGroh if you haven't already, can you please run diagnostics and post the diagnostic id so we have details for debugging.

@jasonbivins
Copy link

Hi @MartinGroh Are you locked out entirely from Docker, or are you able to access when connected to your domain?

@chvndb
Copy link

chvndb commented Jun 3, 2017

@jasonbivins it works when connected to the domain. It is possible to disconnect once docker runs, but restarting requires again to be connected to the domain.

@jasonbivins
Copy link

@chvndb Have you tried the workaround with the local users group? I'm curious to see how that affects the login problem.

@roysbailey
Copy link

roysbailey commented Jun 6, 2017

Exactly the same issue. I am completely locked out of docker now. I am not local domain joined, I am running Windows 10 with an office 365 account (so AzureAD). I cannot run docker at all, so I am unclear as to how I will get an update to fix this, as usually docker updates itself when it runs (and it wont run to get the update).

How would you advise me to move forward from this position? Do I need to go back a version? If so, how would I do that?

p.s. I have tried the workaround with adding my user to the local docker group, and that makes no difference (infact, my user was already in that group).

Thanks...

@gregpakes
Copy link

@roysbailey - I'm not sure what the official advice will be, but I just downgraded docker to the current stable. Uninstall + reinstall.

@roysbailey
Copy link

Thanks @gregpakes... Do you have a link to the version you went back to? Thanks!

@gregpakes
Copy link

@roysbailey The stable channel. This issue only exists on the Edge channel.

@roysbailey
Copy link

Thanks @gregpakes .

I have switched over to the stable channel and I am back up and running.

Cheers, Roy.

@planetf1
Copy link

I don't seem to be able to start docker at all. Not only do I get the message at startup, but also if trying to start docker later

image

I can't use a local user. The id in question is apparently setup for PIN only - no password exists (in case that's a factor).

@jayfresh
Copy link

I just installed the latest Docker update that flashed up today (I had previously downgraded to the stable version) and this problem is still there for me. I use AzureAD to login to the computer - it's not clear I can add myself to the docker-users group...

I am able to run docker as our AzureAD administrator, which is in the docker-users group, by right-clicking Docker for Windows and opting to run as administrator. But then I can't run the docker commands from a non-admin shell - loading up a powershell as admin and running docker looked like it was going to work but triggered a security warning about vpnkit. At this point, I thought I'd downgrade back to the stable branch, but this feature is now in the stable branch so I'm currently having to hunt for previous versions. Boo!

@VecchioIdraulico
Copy link

I'm in a similar situation after this morning's update: I'm not a domain admin on my office network, so I cannot add myself to a user group. Running the software as an administrator is, obviously enough, poor security practice.

I'd like to roll back to an earlier version until this issue is resolved: Is there one available for download?

@simonferquel
Copy link

Have you tried to log out and re-log in before running Docker for Windows ? Group membership update requires the user to re-log in to happen.

@htuomola
Copy link

@jayfresh I got the same error but I added "Authenticated Users" group to Docker-users and restarted laptop and it started now. Not sure which it was, could've just been the logout/login alone (for the direct user membership to docker-users to take effect).

@VecchioIdraulico not sure about your setup but docker-users is a local group, not a domain group so local admin rights should be enough to add yourself into it?

Related to this, I thought that it'd be easy to return to older version but can't actually find them anywhere. Are they somewhere? That should be basic stuff to keep them around in case there are any breaking changes.

@VecchioIdraulico
Copy link

@htuomola Thanks. It's a corporate account, and I'm not able to administer it. (That's good security practice in my working context.) I can run Docker as a local admin, but that's not entirely safe. Trying @simonferquel's suggestion - for which, also, thanks - just gets me a toast notification that I can't run Docker because I'm not in the appropriate group.

@zhaoqin-github
Copy link

@htuomola After I logout and login again, I am able to start Docker! Thank you very much!!

@Vishwa221
Copy link

@htuomola thanks a lot. Logging out worked!!!

@henriquedesousa
Copy link

My fix was to add the "Everyone" group to the docker-users group.

@LyalinDotCom
Copy link

Hit the same issue on fresh installer of Docker Tools on my Windows 10 dev box at home, will try the work around's suggested.

@dsschnau
Copy link

I encountered this issue and a logout/login resolved it.

@dinesarun
Copy link

If we get this issue fixed soon, it will be better and easy for windows users to kick start with Docker..

@Ben-m-s
Copy link

Ben-m-s commented Aug 29, 2017

Same issue here. Thanks, guys, for working on a solution. Very useful.

@certik
Copy link

certik commented Sep 5, 2017

I use the latest stable version of Docker on Windows 10, can run Docker under an admin account, but not under my user account (which is in the docker-users group, and yes, I restarted several times), it gives the error "Unable to start Docker, you must be part of the docker-users group".

At the very least, this error message is misleading, as I am in fact "part of the docker-users group".

Workaround: I added "Authenticated Users" group to docker-users, and now it works! Thanks to @htuomola.

@duncancoppedge
Copy link

Upgraded to 17.09.0-ce-win32 (13529) on win10 enterprise 1607 (14393.1715) today.
I was connected to my company's AD.
Same error. Restarted several times.
Run as admin didn't work.
Workaround: added my AD user to the docker-users group.
There were no other users or groups assigned to the docker-users other than NT AUTHORITY\SYSTEM (S-1-5-18)

@drlukeangel
Copy link

Main issue above replicated as AzureAD user was not by able to share a drive even as admin of computer. windows version
10 .0.15063.0
In response to @duncancoppedge his post led me to the correct action.
my azuread/{user} was in the docker-users group and it was not working added the docker-users group as full permission to drive and that seemed to work.

@dl7631
Copy link

dl7631 commented Nov 16, 2017

Guys, I am having the same issue. Could anyone please explain how one can add oneself to the docker-users group? What are the actual steps? Thank you

@jasonbivins
Copy link

@dl7631 The docker-users group is a local users group on your machine. You can add yourself to it through the Windows GUI here
image

@drlukeangel
Copy link

alternatively if you can create a local user admin on the machine and install it that user and share your dirve it will also work.

@ddamerell53
Copy link

Adding "Local account" to docker-users solved the problem for me. Though I'm sure that probably opens up security issues.

@GreenSpecialist
Copy link

Still an issue. I even added everyone to the docker-users group and it doesnt work

@khteh
Copy link

khteh commented Jul 21, 2018

Docker version 18.03.1-ce, build 9ee9f40 still has the issue. All users are added to docker-users group!!!

@khteh
Copy link

khteh commented Jul 23, 2018

Resolved. I must login to active directory and add myself into docker-users group. I was using local account and that's why it failed.

@nfunky
Copy link

nfunky commented Aug 10, 2020

In certain Windows versions you might not have the "Local Users and Groups" option in the Computer Management. I used the following command to add my username to the docker user group:
net localgroup "docker-users" "username" /add

@RobertMara
Copy link

Thank you @nfunky. That solved my problem. I'm working on a personal laptop and didn't have Local Users and Groups.

@jamesz
Copy link

jamesz commented Dec 21, 2021

For those using AzureAD as domain and thus can't find your user in the Local Users and Groups, try reinstalling Docker Desktop while logged in as your AzureAD user. That worked for me.

@BobBuildingCode
Copy link

If you're using AzureAD, you can also try adding the account with net localgroup (even if you can't find the user in Local Users and Groups): net localgroup "docker-users" "AzureAD\[email protected]" /add

@bsunderhus
Copy link

Is there any updates for this issue? I'm having the same problem with an external user, although my user is already in the group, I still can't run docker

@lysaali50
Copy link

lysaali50 commented Feb 18, 2024

I'm new to this. I don't have a work/school email but do want to set up docker for home media sharing for fun with nextcloud

i logged in with my google account on docker, but it keeps crashing for some reason? I've been following Raid Owl's guide on youtube,
https://youtu.be/rmVCtZrtvgA?si=EyPwK2NwFgDJTCln

not sure why docker keeps crashing on me?
do i need an active directory? what's the simplest way i can work around this?

last thing: I'm using a windows 11 laptop with a Ryzen 7 processor

@achur00
Copy link

achur00 commented Apr 9, 2024

I was able to resolve the issue, Thanks to @htuomola idea,
STEPS
1.Go to windows computer management
2. include authenticated-user to docker-users group
3. Restart your computer

@dev7495
Copy link

dev7495 commented Jul 16, 2024

Upgraded to 17.09.0-ce-win32 (13529) on win10 enterprise 1607 (14393.1715) today. I was connected to my company's AD. Same error. Restarted several times. Run as admin didn't work. Workaround: added my AD user to the docker-users group. There were no other users or groups assigned to the docker-users other than NT AUTHORITY\SYSTEM (S-1-5-18)

@duncancoppedge Can you guide how did you add AD user to docker-group. My entra user logged in to laptop yet i'm not able to add it to group. His name not coming in select user pop up window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests