docker swarm 部署overlay 问题记录

docker stack deploy -c XXXX.yml eureka  启动的时候 
有应用怎么都起不来  docker logs 查看日志又是空的。
docker service ps  error 提示 ‘start fail er...’ 提示不全。。 网上查了下 portainer contain  docker start  
提示:ERROR: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network


搞了半天
想原来测试环境没有这个问题 就对应 docker network ls 看下。。发现生成环境小了 docker_gwbridge


然后 到https://docs.docker.com/engine/swarm/networking/#customize-the-docker_gwbridge 下看到 手工生成网络


然后就好了。。
但原理 还是 不太懂  


而且docker network create test  生成网络 还是报:
Error response from daemon: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network




不过 swarm  是可以了

你可能感兴趣的:(docker swarm 部署overlay 问题记录)