I’m having issues with my Docker setup as it relates to networking between them. I noticed the issue by exec’ing into a container and trying to ping another container within the same Docker network.
Seemingly completely random packet loss. When this happens it affects all containers and all pinging/communication between containers and I cannot for the life of me figure out why, it’s almost like Docker’s internal DNS starts to die over time. Recreating a new docker network and moving all containers to it immediately resolves the issue, but only for a finite amount of time. Could be days, could be months.
I have considered that this may be a Caddy issue, but I don’t think it relates to Caddy for 2 reasons:
- Exec’ing into the container and pinging another should be bypassing any of Caddy’s actual functionality and should “just work” as far as Docker is concerned.
- When the issue appears, it applies to other containers as well, eg. audiobookshelf<->jellyfin
System details:
Debian running OpenMediaVault 7.4.13 running docker-ce 5:27.3.1-1~debian.12~bookworm
Docker network inspect:
root@nas:~# docker network inspect caddy_network
[
{
“Name”: “caddy_network”,
“Id”: “587d44cbc57255715c708a3f05017a26f37050d15bcd3eb21def8b821df0a211”,
“Created”: “2024-11-17T17:35:00.780975271-07:00”,
“Scope”: “local”,
“Driver”: “bridge”,
“EnableIPv6”: false,
“IPAM”: {
“Driver”: “default”,
“Options”: null,
“Config”: [
{
“Subnet”: “172.19.0.0/16”,
“Gateway”: “172.19.0.1”
}
]
},
“Internal”: false,
“Attachable”: false,
“Ingress”: false,
“ConfigFrom”: {
“Network”: “”
},
“ConfigOnly”: false,
“Containers”: {
“977e732afe8b57070ea8f97770ed1e4ed5c82ab08af328996ff7bc45598d618b”: {
“Name”: “audiobookshelf”,
“EndpointID”: “64aab0e717bbb62ecfc76cf952330809e87db30f9a24dd65a17f520850cc9678”,
“MacAddress”: “02:42:ac:13:00:02”,
“IPv4Address”: “172.19.0.14/16”,
“IPv6Address”: “”
},
“b77172af768c69a4aa670c9baa15b2224270723ff5a25890ff4bd61b3bbcf1d2”: {
“Name”: “caddy”,
“EndpointID”: “2ad1a8b38161ee4726d172e16902b72aa5c63e3cc730809c2631b2070c33c0ca”,
“MacAddress”: “02:42:ac:13:00:0a”,
“IPv4Address”: “172.19.0.10/16”,
“IPv6Address”: “”
}
“Options”: {},
“Labels”: {}
}
]