While creating docker swarm cluster, I have came across following two commands:
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.