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.