docker network create --gateway=192.168.3.254 --subnet=192.168.3.0/24 --opt="com.docker.network.bridge.enable_ip_masquerade=false" docker3
[
{
"Name": "docker3",
"Id": "911340cdd778a2dfbc1c662471d8a669ed80579231f595b4e5726861502492f3",
"Scope": "local",
"Driver": "bridge",
"IPAM": {
"Driver": "default",
"Config": [
{
"Subnet": "192.168.3.0/24",
"Gateway": "192.168.3.254"
}
]
},
"Containers": {},
"Options": {
"com.docker.network.bridge.enable_ip_masquerade": "false"
}
}
]
docker network create --driver=bridge --subnet=172.28.0.0/16 --ip-range=172.28.5.0/24 --gateway=172.28.5.254 br0
참조
https://docs.docker.com/engine/reference/commandline/network_create/