我一直在尝试了解 docker 和 swarm 模式。我还阅读了 docker 网络教程。 我尝试过 docker swarm 模式。如果初始化 docker swarm 模式,并且执行 docker network ls ,它会显示一个名为 ingress 的网络。 我的问题是我是否需要专门创建一个覆盖网络?或者 swam 模式是否应该在不专门创建网络的情况下正常工作?
最佳答案
My question is do I need to exclusively create an overlay network?Or should the swam mode work fine without exclusively creating a network?
不,您不需要,但是建议您为部署到 Swarm 的应用程序创建自定义覆盖网络。 入口
覆盖网络处理与群服务相关的控制和数据流量
。来自 official documentation :
Use the default overlay network demonstrates how to use the default overlay network that Docker sets up for you automatically when you initialize or join a swarm. This network is not the best choice for production systems.
关于docker - 我是否需要为 docker swarm 模式显式创建网络,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49914966/