172.20.10.1-10/16
172.20.10.11-20/16
172.20.10.21-30/16
172.20.10.31-40/16
172.20.10.41-50/16
172.20.10.51-60/16
172.20.10.61-70/16
172.20.10.71-80/16
172.20.10.81-90/16
172.20.10.91-100/16
172.20.10.101-110/16
172.20.10.111-120/16
172.20.10.121-130/16
172.20.10.131-172.20.10.140/16 131:zookeper 132:kafka
172.20.10.141-150/16
172.20.10.151-160/16
172.20.10.161-170/16
172.20.10.171-180/16 nsqloolupd: 172.20.10.171 nsqd: 172.20.10.172
172.20.10.181-190/16 zk1: 172.20.10.181 zk2: 172.20.10.182 zk3: 172.20.10.183
172.20.10.191-200/16
172.20.10.201-210/16
172.20.0.1-253/16
1、ip range:172.20.100.1---254
2、IP地址维护的力度比公共服务小/16
docker network create -d bridge --gateway 172.20.0.254 --subnet 172.20.0.0/16 pub
version: '2'
networks:
pub:
external: true
services:
c1:
restart: always
networks:
pub:
ipv4_address: 172.20.0.1
image: