[英]docker run swarm create vs docker swarm init
While creating docker swarm cluster, I have came across following two commands:在创建 docker swarm 集群时,我遇到了以下两个命令:
Both used for initializing Docker swarm cluster.两者都用于初始化 Docker swarm 集群。 Can any one explain what are different trade off parameter between these two?
任何人都可以解释这两者之间有什么不同的权衡参数吗?
docker run swarm create
will deploy standalone swarm (swarm-mode) in a container. docker run swarm create
将在容器中部署独立的 swarm(swarm 模式)。 Whereas docker swarm init
will initiate swarm (swarm-kit) that is shipped built in docker
container runtime.而
docker swarm init
将启动内置于docker
容器运行时中的 swarm(swarm-kit)。
The following answers does very well to explain the difference.以下答案很好地解释了差异。 The relation between "docker/swarm" and "docker/swarmkit"
“docker/swarm”和“docker/swarmkit”的关系
But to simply specify the difference, one is tightly integrated with docker
container runtime engine.但是为了简单地指定差异,一个是与
docker
容器运行时引擎紧密集成的。 The other runs inside the container.另一个在容器内运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.