What is the difference between Doiker and Roy modes?

I was wondering if someone could tell the difference between the two. Both of them have similar names.

+11


source to share


2 answers


Docker Swarm is a standalone product that can be used to cluster multiple Docker nodes. Prior to Docker 1.12, this was Docker's only native host clustering option, and required a lot of additional configuration for distributed state, service discovery, and security.

As of Docker 1.12, Swarm Mode is built into the Docker Engine. To run a cluster, you just need to install Docker on multiple machines, run docker swarm init

it to switch to Swarm mode and docker swarm join

to add more nodes to the cluster. Status, Discovery and Security are enabled with zero setting.



Swarm mode is optional, but if you want to run multiple Docker hosts this is the preferred method. You get reliability, load balancing, scaling, and service upgrades in 1.12, and the bulk of the new features are likely to go into Swarm mode. The initial Docker Swarm product will probably only have maintenance updates in the future (although Swarm is open source , just like the Docker Engine ).

+20


source


Docker Swarm (also Swarm classic) is fundamentally different from Swarm Mode . The Native Swarm feature will continue to be supported in the Docker 1.12 release to maintain backward compatibility.

Docker Swarm (classic) :

  • Separate from Docker Engine and can act as a Container
  • Needs external KV storage like Consul, etcd, Zookeeper

Usage example:

docker run swarm manage <consul-ip>
docker -H <worker-ip> run swarm join --advertise=<worker-ip> <consul-ip>

      



Swarm mode (new, preferred) :

  • Built-in Docker engine
  • No need for separate external KV storage

Usage example:

docker swarm init --advertise-addr <manager-ip>
docker -H <worker-ip> swarm join --token <worker-token>

      

+1


source







All Articles