Manish Kumar
Manish Kumar

Reputation: 133

docker run swarm create vs docker swarm init

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?

Upvotes: 3

Views: 371

Answers (1)

Abdullah Shah
Abdullah Shah

Reputation: 780

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.

Upvotes: 3

Related Questions