Hello,
Which Docker command is used to know user running a particular docker container on the host.?
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.