Hi all,
User created bridge network and Docker Engine is adding the gateway IP address to the bridge, how do I stop this?
This bridge is to allow the containers and external hosts to communicate (no NAT, direct communication); it has
an external default gateway 10.13.254.254
The linux bridge device has no IP address, (the docker host has another IP for management).
This bridge to purely for containers to reach the external networks.
However Docker Engine is adding the gateway address of 10.13.254.254 to the bridge device vlan13
ifcfg-vlan13
DEVICE=vlan13
TYPE=Bridge
DELAY=0
STP=off
ONBOOT=yes
MTU=1500
DEFROUTE=no
NM_CONTROLLED=no
IPV6INIT=no
HOTPLUG=no
{
"Name": "vlan13",
"Id": "7156d80a4ab4f6143b80e5715885bdc352e02c89ad7029318717ce8d8157bd8f",
"Scope": "local",
"Driver": "bridge",
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "10.13.0.0/16",
"Gateway": "10.13.254.254"
}
]
},
"Options": {
"com.docker.network.bridge.name": "vlan13"
}
}
It is not consistent nor repeatable; but occassionally Docker will add 10.13.254.254/16 as IP address to the vlan13 brdige.