Docker Community Forums

Share and learn in the Docker community.

Which user is running the docker container?


(Netra41104) #1

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.