A story that happened when using the address band 172.17.xxx.xxx
on a physical network.
Ubuntu 18.04.3 LTS Docker version 19.03.5
The bridge interface automatically generated by Docker uses 172.17.0.xxx/16
and
** Interfered with the physical network address band **.
It seems that you can specify the IP address when it is automatically generated in /etc/docker/daemon.json
.
/etc/docker/daemon.json
{
"bip": "192.168.0.1/24",
"default-address-pools":[
{
"base":"192.168.0.0/16",
"size":24
}
]
}
As a point
-- bip
is for docker0
-- default-address-pools
is for br-xxxxxxxxxxxx
--Even if there is no bip
, it is automatically generated from default-address-pools
, so you can omit it.
was.
Recommended Posts