Find out container process user id
Posted on August 12, 2024
//
docker
NB users with the same id on host and inside container share privileges on the host machine.
docker top <CONTAINER> -eo uid,gid,pid,cmd
this command will show a custom format output of the process list, starting with the uid
Hey! I'll happily receive your comments
via email.
Thanks for reading.
Rails developer with a sysadmin's background, in Tallinn, Estonia ·
andreaswagner.io