Closed bdrung closed 4 years ago
Hi,
I've the same issue on my Linux embedded platform. Did you find any solution?
Do you have ipforwarding enabled?
cat /proc/sys/net/ipv4/ip_forward
Check dmesg | grep docker
for errors.
Possibly related https://github.com/moby/moby/issues/26492
We figured out the cause. We had this netplan configuration:
network:
version: 2
renderer: networkd
ethernets:
all:
match:
name: "*"
dhcp4: yes
dhcp6: yes
This match also applied to docker0
causing the symptoms described in this ticket. After changing the netplan config to
network:
version: 2
renderer: networkd
ethernets:
all:
match:
name: "en*"
dhcp4: yes
dhcp6: yes
docker starts without this issue.
Expected behavior
After installation and reboot, I expect the
docker0
bridge device to have an IP address assigned.Actual behavior
No IP address is assigned to the bridge device:
The kernel complains that the link is not ready:
Restarting the docker daemon will solve the issue:
Steps to reproduce the behavior
Just install docker on Ubuntu 18.04:
Then you will experience this issue.
Output of
docker version
:Output of
docker info
:This issues is reproducible in the IONOS Enterprise Cloud with a minimal Ubuntu 18.04 image. This Ubuntu 18.04 image does not contain any modifications (all packages come from Ubuntu).