简体   繁体   中英

docker run swarm create vs docker swarm init

While creating docker swarm cluster, I have came across following two commands:

  • docker run swarm create
  • docker swarm init

Both used for initializing Docker swarm cluster. 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. Whereas docker swarm init will initiate swarm (swarm-kit) that is shipped built in docker container runtime.

The following answers does very well to explain the difference. The relation between "docker/swarm" and "docker/swarmkit"

But to simply specify the difference, one is tightly integrated with docker container runtime engine. The other runs inside the container.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM