“泊坞窗/群”之间的关系和“docker / swarmkit”
我已经熟悉 docker / swarm ,但发现有一个新项目: a href =https://github.com/docker/swarmkit =nofollow> docker / swarmkit 。但不幸的是,在阅读了自述文件后,我仍然无法弄清楚 docker / swarmkit
的功能是什么?有没有人可以帮助您详细阐述 docker / swarm
和 docker / swarmkit
之间的关系?为什么#code> docker / swarmkit 出生?
I am already familiar with docker/swarm, but find there occurs a "new" project: docker/swarmkit. But unfortunately, after reading the README, I still can't figure out what is the function of docker/swarmkit
. Could anyoone help to elaborate the relations between docker/swarm
and docker/swarmkit
? Why is docker/swarmkit
born?
Docker Swarm 是较旧的(2014)Docker本地编排工具。它是Docker引擎独立的,用于将Docker引擎连接在一起形成一个集群。然后可以连接到群集并在集群上运行容器。 Swarm有一些功能:
Docker Swarm is an older (2014) Docker native orchestration tool. It is standalone from the Docker engine and serves to connect Docker engines together to form a cluster. It's then possible to connect to the Swarm and run containers on the cluster. Swarm has a few features:
- 允许您指定发现服务(consul etc ...)
- 某些控制容器放置的位置(使用过滤器/约束/分发策略等)
- 暴露与Docker引擎本身相同的API,允许第三方工具无缝互动
Swarmkit 是由Docker团队开发的一种新的(2016)工具(其中大部分来自我所相信的SocketPlane采集),它提供了运行集群并将任务(注意:不一定是Docker容器)分发到集群中的机器的功能。 Swarmkit的自述文件非常好,这里是广告的主要功能:
Swarmkit is a new (2016) tool developed by the Docker team (most of which came out of the SocketPlane acquisition I believe) which provides functionality for running a cluster and distributing tasks (note: not necessarily Docker containers) to the machines in the cluster. The readme for Swarmkit is very good, and here are the main features as advertised:
- 分布式:SwarmKit使用筏共识算法,以便协调,不依赖于单一故障点执行决策。
- 安全:群集中的节点通信和成员资格是安全的。 SwarmKit使用相互TLS进行节点认证,角色授权和传输加密,自动执行证书颁发和轮换。
- 简单:SwarmKit操作简单,最小化了基础设施依赖关系。它不需要外部数据库来操作。
Docker Swarm Mode(Version 1.12>) >使用 Swarmkit库&功能,以便通过多个主机(集群)进行容器编排非常简单&安全操作。有一组新功能(主要是 docker swarm
),它们现在内置到Docker本身,以允许您启动新的Swarm并部署任务(在这种情况下是Docker容器,但不一定是,请参见上面的 Swarmkit )到该集群。
Docker Swarm Mode (Version 1.12 >) uses Swarmkit libraries & functionality in order to make container orchestration over multiple hosts (a cluster) very simple & secure to operate. There is a new set of features (the main one being docker swarm
) which are now built into Docker itself to allow you to initiate a new Swarm and deploy tasks (which are Docker containers in this case, but don't have to be, see Swarmkit above) to that cluster.
如 Docker Swarm 页面所述,它不被废弃,并且仍然是Docker多主机编排的可行方法,但是 Docker群组模式(其中使用了 Swarmkit 库)是建议的方式来开始一个新的Docker项目,其中需要编排多个主机。
As mentioned on the Docker Swarm page, it is not being deprecated, and is still a viable method for Docker multi-host orchestration, but Docker Swarm Mode (which uses the Swarmkit libraries under the hood) is the recommended way to begin a new Docker project where orchestration over multiple hosts is required.