Docker Community Forums

Share and learn in the Docker community.

Which user is running the docker container?

docker

(Netra41104) #1

Hello,
Which Docker command is used to know user running a particular docker container on the host.?


(David Maze) #2

Containers don’t know about host users.

Any user who can docker run can trivially give themselves root access on the host and thereby impersonate other users, so it’s kind of not an interesting question in any case.