具有两个networking的基于Docker的领事服务发现失败

我使用docker swarm进行consul集群configuration。 我的服务发现只有一个networking正常工作。 但与第二个networking添加,我得到以下信息“[警告]成员列表:能够连接到69eca29632dc但其他探测器失败,networking可能被错误configuration”。 如何正确configuration这个networking来克服这个问题?

version: '3' services: consul: image: consul:latest deploy: replicas: 3 environment: - CONSUL_LOCAL_CONFIG={\"disable_update_check\":true} - CONSUL_BIND_INTERFACE=eth0 - CONSUL_HTTP_ADDR=0.0.0.0 entrypoint: - consul - agent - -server - -bootstrap-expect=3 - -data-dir=/consul/data - -bind={{ GetInterfaceIP "eth2" }} - -client=0.0.0.0 - -retry-join=172.177.0.3 - -retry-join=172.177.0.4 - -retry-join=172.177.0.5 - -ui networks: - backend #works properly without this line - consul ports: - 8500:8500 - 8600:8600 networks: consul: driver: overlay ipam: config: - subnet: 172.177.0.0/16 backend: driver: overlay ipam: config: - subnet: 173.177.0.0/16