简体   繁体   中英

I want to create 2 docker networks with same IP range

I want to create two docker networks with same ip range and should statically assign the IP address

docker network create --driver=bridge --subnet=192.168.0.0/16 'network_one' docker network create --driver=bridge --subnet=192.168.0.0/16 'network_two'

Docker won't let you do that. Having two identical networks attached to two different interfaces on your host would greatly complicate routing. Docker is not designed to manage the host-level routes that would be necessary for this configuration to work correctly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM