简体   繁体   English

docker swarm manager是swarm集群的一部分吗?

[英]Is docker swarm manager part of the swarm cluster?

I don't quite understand why the official documents are using so many machines to create a swarm cluster. 我不太明白为什么官方文件使用这么多机器来创建集群。 Is it possible to hv consul and swarm manager in the same machine ? 是否可以在同一台计算机上使用领事和群管理器? Also, is swarm manager part of the cluster ? 另外,群集管理器是否是集群的一部分? If, say, I create an overlay network, is swarm manager host part of that network? 例如,如果我创建一个覆盖网络,那么swarm manager主机是该网络的一部分吗?

The answer is no. 答案是不。 The Swarm Manager is not part of the network overlay. 群集管理器不属于网络覆盖。 More generally Swarm is just a container running on a Docker daemon. 一般来说,Swarm只是在Docker守护程序上运行的容器。 If you add this Docker daemon into the cluster, then the Swarm Manager hosting the Swarm container will also be a Swarm Agent and then receive containers. 如果将此Docker守护程序添加到集群中,则托管Swarm容器的Swarm Manager也将是Swarm代理,然后接收容器。

If you ever need, you can find a whole step-by-step tutorial on how to deploy a Swarm cluster . 如果需要,可以找到有关如何部署Swarm集群的完整分步教程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM