Windows Container: Containeradministrator vs. Administrator?

10

1

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?

papanito

Posted 2017-03-08T16:50:18.780

Reputation: 227

Answers

2

'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.

linuxdev2013

Posted 2017-03-08T16:50:18.780

Reputation: 1 051