Now, the container pid that is get by docker inspect -f '{{.State.Pid}}' [container_id] is the pid of shim process, and the shim process is in the host netwok namespace.
In some case, we should get the netwok namespace of container via the container pid (e.g. dockershim),
This PR moves the shim process into the pod network namespace like VM procewss.
Now, the container pid that is get by docker inspect -f '{{.State.Pid}}' [container_id] is the pid of shim process, and the shim process is in the host netwok namespace.
In some case, we should get the netwok namespace of container via the container pid (e.g. dockershim), This PR moves the shim process into the pod network namespace like VM procewss.
Fixes #615 Related to https://github.com/clearcontainers/runtime/issues/987#issuecomment-364452318
/cc @sboeuf @sameo @plutoinmii
Signed-off-by: Yanqiang Miao miao.yanqiang@zte.com.cn