rimelek
(Ákos Takács)
February 22, 2024, 2:35pm
5
using host networks can’t be a fallback. You can compare your two machines what was installed on one that wasn’t on the other or how the confiuration is different.
I also found this for you
opened 09:19PM - 08 Nov 19 UTC
closed 01:28PM - 11 Dec 19 UTC
Docker version 19.03.4-ce, build 9013bf583a
Archlinux (up to date)
All iptab… les flushed
docker package freshly reinstalled
default configuration (no daemon.json)
When i start a container, after 30 sec, a strange default dev comes and breaks hosts connectivity. Container never have connectivity.
```
root@osz ~# docker run --rm -d -p 8080:80 nginx
d086de00d5593253ed1e95bc834572346c2106f81d20e02beea112be488b3a77
root@osz ~# ip route
default via 192.168.1.254 dev eno1 proto dhcp src 192.168.1.46 metric 10
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1
192.168.1.0/24 dev eno1 proto kernel scope link src 192.168.1.46
192.168.1.254 dev eno1 proto dhcp scope link src 192.168.1.46 metric 10
root@osz ~# ping 216.58.215.35
PING 216.58.215.35 (216.58.215.35) 56(84) bytes of data.
64 bytes from 216.58.215.35: icmp_seq=1 ttl=53 time=14.4 ms
64 bytes from 216.58.215.35: icmp_seq=2 ttl=53 time=13.8 ms
64 bytes from 216.58.215.35: icmp_seq=3 ttl=53 time=13.6 ms
64 bytes from 216.58.215.35: icmp_seq=4 ttl=53 time=14.2 ms
64 bytes from 216.58.215.35: icmp_seq=5 ttl=53 time=13.8 ms
64 bytes from 216.58.215.35: icmp_seq=6 ttl=53 time=13.9 ms
64 bytes from 216.58.215.35: icmp_seq=7 ttl=53 time=13.9 ms
64 bytes from 216.58.215.35: icmp_seq=8 ttl=53 time=13.6 ms
64 bytes from 216.58.215.35: icmp_seq=9 ttl=53 time=13.8 ms
64 bytes from 216.58.215.35: icmp_seq=10 ttl=53 time=13.3 ms
64 bytes from 216.58.215.35: icmp_seq=11 ttl=53 time=13.8 ms
64 bytes from 216.58.215.35: icmp_seq=12 ttl=53 time=13.9 ms
64 bytes from 216.58.215.35: icmp_seq=13 ttl=53 time=13.7 ms
64 bytes from 216.58.215.35: icmp_seq=14 ttl=53 time=13.7 ms
64 bytes from 216.58.215.35: icmp_seq=15 ttl=53 time=13.7 ms
64 bytes from 216.58.215.35: icmp_seq=16 ttl=53 time=14.2 ms
From 169.254.179.145 icmp_seq=17 Destination Host Unreachable
From 169.254.179.145 icmp_seq=18 Destination Host Unreachable
From 169.254.179.145 icmp_seq=19 Destination Host Unreachable
From 169.254.179.145 icmp_seq=20 Destination Host Unreachable
From 169.254.179.145 icmp_seq=21 Destination Host Unreachable
^C
--- 216.58.215.35 ping statistics ---
23 packets transmitted, 16 received, +5 errors, 30.4348% packet loss, time 22099ms
rtt min/avg/max/mdev = 13.303/13.826/14.449/0.260 ms, pipe 4
root@osz ~# ip route
default dev veth4a2ef1a scope link
default via 192.168.1.254 dev eno1 proto dhcp src 192.168.1.46 metric 10
169.254.0.0/16 dev veth4a2ef1a proto kernel scope link src 169.254.179.145
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1
192.168.1.0/24 dev eno1 proto kernel scope link src 192.168.1.46
192.168.1.254 dev eno1 proto dhcp scope link src 192.168.1.46 metric 10
```
Killing the container solve the problem and remove default dev.