问题描述
docker选项--net=container:NAME_or_ID
的用法我已经很清楚了,我也看过kubernetes的源码,关于如何配置容器使用InfraContainer
,所以我认为容器 gcr.io/google_containers/pause:0.8.0
中的唯一工作是暂停",它永远不会做任何复杂的工作,比如接收"、发送"或路由".
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".
但我不确定,因为我找不到gcr.io/google_containers/pause:0.8.0
的Dockerfile
,所以我需要有人清楚关于它告诉我真相,谢谢!
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!
推荐答案
pause
休眠,直到它收到 SIGINT
或 SIGTERM
.Dockerfile 只是添加了 pause
二进制到一个空容器.
pause
sleeps until it receives SIGINT
or SIGTERM
. The Dockerfile just adds the pause
binary to an empty container.
这篇关于容器“gcr.io/google_containers/pause:0.8.0"中的进程做了什么工作?做?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!