12

I am a little confused when it comes to the users with Docker. When I run a Windows Container (e.g. microsoft/windowsservercore) and I type in whoami I get the following response

user manager\containeradministrator

But when running net user within the container I don't see any containeradministrator but rather only

-------------------------------------------------------------------------------
Administrator            DefaultAccount           Guest

So what user is this conataineradministrator in the end and what permissions does he have? Does he belong to a user group?

1 Answer 1

3

'Net User' is being called from the HOST ( Windows itself not the container ) hence the Administrator only in the 'whoami'

'whoami' INSIDE the container is the container's equal which only has Admin rights INSIDE the container and things inside/acting inside the container.

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .