docker - 我是否需要为 docker swarm 模式显式创建网络

标签 docker docker-swarm

我一直在尝试了解 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/

相关文章:

java - Elasticsearch 无法与 Docker 一起运行

Grails 监视文件在 Vagrant 虚拟机内运行的 Docker 容器中不起作用

docker - 如何将Docker Swarm连接到多个领事服务器以进行故障转移?

proxy - 代理后面的 Docker-Machine 和 Swarm

docker - 如何在docker-swarm管理器上访问本地构建的docker-image?

docker - Traefik v2在端口上监听

java - 甲骨文java 8无法找到包

amazon-web-services - 如何在 AWS Elastic Container Service 中使用现有的 docker-compose.yml 文件?

ubuntu - Vagrant 中的 Docker 发出 : Warning: Connection refused. 重试

Traefik Docker Swarm 模式真实 ip 背后的 Nginx