2014-12-07 2243 views

回答

1

请参阅Docker Advanced networking文档。具体见the --bip and --fixed-cidr options。您可以使用--fixed-cidr指定容器可用的IP空间,使用--bip指定码头桥IP。

要获得与您指定的内容相近的内容,您可以使用--fixed-cidr=10.1.1.0/26 --bip=10.1.1.62。在这种配置中,容器将有地址10.1.1.1-10.1.1.61可用,并且Docker桥将使用10.1.1.62。