PID mapping between docker and host

前端 未结 2 747
有刺的猬
有刺的猬 2021-02-06 09:09

How docker namespace is different from Host namespace and how the pid can be mapped between these two? Can anyone give me an idea that helps to make easy way of mapping pid\'s b

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-06 09:32

    You can find the mapping in /proc/PID/status file. It contains a line like:

    NSpid:  16950   24
    

    Which means that 16950 on the host is 24 inside the container.

提交回复
热议问题