问题描述
我已经清楚地知道了docker选项的使用方法 - net = container:NAME_or_ID
,我也已经看过关于如何配置容器的kubernetes的源代码使用 InfraContainer
的网络,所以我认为在容器 gcr.io/google_containers/pause:0.8.0 $中唯一的工作过程c $ c>是暂停,它将永远不会像接收,发送或路由那样复杂的工作。
但我不确定,因为我找不到 Dockerfile
gcr .io / google_containers / pause:0.8.0
,所以我需要有人清楚地告诉我真相,谢谢!
解决方案 Dockerfile是 :它只是将暂停二进制文件添加到一个空的容器。
暂停代码是:它只是等待直到它收到 SIGINT
或 SIGTERM
。
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 container to use the network of InfraContainer
, so I think the only work the process in container gcr.io/google_containers/pause:0.8.0
does is "pause", it will never do any complex work like "receiving", "sending" or "routing".
But I am not sure about it because I can not find the Dockerfile
of gcr.io/google_containers/pause:0.8.0
, so I need someone know clearly about it to tell me the truth, thanks!
解决方案 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
.
这篇关于容器“gcr.io/google_containers/pause:0.8.0”中的过程有哪些功能做?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!