Open kosvar opened 5 years ago
@stefanscherer @ddebroy ptal
I can reproduce it with Windows Server 2019 mcr.microsoft.com/windows/servercore:1809 image as well. I think this is a behavior in the container and not an issue with Docker engine.
Wouldn't containeradministrator also have this issue, if it's container behaviour?
I think user ContainerAdministrator is created in a different way than net user /add
, so might be member of the LOCAL group.
LOCAL group is for (from msdn): "Users who log on to terminals locally (physically) connected to the system" I don't think it matters how you create users, but how you log them in (hence why my suspicion was in USER directive in dockerfile)
/cc @jterry75 @jhowardmsft
Description Hey, i've been trying to run Docker container with local user without admin privileges. For that i created a dockerfile such as:
But when running as "tester" user, this user is not added to LOCAL group (S-1-2-0) in windows. Does anyone know why or what's the workaround for this to behave as normal? containeradministrator user does not pose this issue and is correctly added to LOCAL group
Steps to reproduce the issue:
Describe the results you received: tester user is not in LOCAL group (s-1-2-0)
Describe the results you expected: Tester user is a member of LOCAL group (s-1-2-0)
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):