Docker创建新的网络

docker network create --driver bridge \
--subnet 172.21.0.0/16 \
--gateway 172.21.0.1    \
--subnet 2001:db8:2::/64 \
--gateway 2001:db8:2::1   \
--opt com.docker.network.bridge.name=new_net_name \
--opt com.docker.network.bridge.enable_icc=true \
--opt com.docker.network.driver.mtu=1492 -opt  \
--opt com.docker.network.bridge.enable_ip_masquerade=true \
--opt com.docker.network.bridge.host_binding_ipv4=0.0.0.0 \
new_net_name
Show Comments