I have known clearly about the usage of the docker option --net=container:NAME_or_ID, I also have read the source code of kubernetes about how to configure the
--net=container:NAME_or_ID
The Dockerfile is here: it just adds pause binary to an empty container.
The pause code is here: it just waits until it receives SIGINT or SIGTERM.
SIGINT
SIGTERM