docker Swarm和Swarm模式有什么区别? [英] What is the difference between docker Swarm and Swarm mode?

查看:103
本文介绍了docker Swarm和Swarm模式有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有人可以区分这两者。两者的命名都相似。

I was wondering if anyone could differentiate between these two.Both of them have similar naming.

推荐答案

Docker Swarm 是一个单独的产品,可用于群集多个Docker主机。在Docker 1.12版之前,它是用于群集主机的唯一本地Docker选项,并且它需要大量其他设​​置来实现分布式状态,服务发现和安全性。

Docker Swarm is a separate product which you can use to cluster multiple Docker hosts. Prior to Docker version 1.12 it was the only native Docker option for clustering hosts, and it needed a lot of additional setup for distributed state, service discovery and security.

使用Docker 1.12,群模式内置在Docker Engine中。要运行集群,您只需要在多台机器上安装Docker,请运行 docker swarm init 切换到Swarm模式,然后 docker swarm join 将更多节点添加到群集。状态,发现和安全性都包含在零设置中。

With Docker 1.12, Swarm Mode is built into Docker Engine. To run a cluster you just need to install Docker on multiple machines, run docker swarm init to switch to Swarm Mode and docker swarm join to add more nodes to the cluster. State, discovery and security are all included with zero setup.

Swarm Mode是可选的,但是如果要运行多个Docker主机,这是首选方法。您可以在1.12中获得可靠性,负载平衡,扩展和滚动服务升级,并且很多新功能很可能会进入Swarm模式。原始Docker Swarm产品将来可能只会进行维护更新(尽管 Swarm是开源的,就像 Docker引擎)。

Swarm Mode is optional, but if you want to run several Docker hosts it's the preferred way. You get reliability, load-balancing, scaling, and rolling service upgrades in 1.12, and it's likely that the bulk of new features will go into Swarm Mode. The original Docker Swarm product will probably only have maintenance updates in the future (although Swarm is open source, just like Docker Engine).

这篇关于docker Swarm和Swarm模式有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆