DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Roy
Roy

Posted on

Answer: docker find container by pid of inside process

Thank you @alex Past and @stanislav for the help. But I did not get full answers for me. I combined them.
In summary I has got next.

First

pstree -sg <PID>

where PID is the process's PID from the command top

In output I am getting parent PID for the…

Top comments (0)

Become a Moderator Can you help us make DEV a better place?

Fill out this survey and help us by becoming a tag moderator here at DEV.