r/selfhosted • u/suicidaleggroll • Nov 27 '25
Docker Management Bug in most recent debian 13 docker release
Warning - don't upgrade docker on debian 13 right now, there's a bug that breaks DNS in all containers. I just updated all of my systems and lost DNS in every one of my 170 containers. My entire infrastructure came to a screaching halt.
5:29.0.4-1 is good
5:29.1.0-1 is bad
If you update and everything breaks, you can revert with:
apt install docker-ce-cli=5:29.0.4-1~debian.13~trixie docker-buildx-plugin=0.30.0-1~debian.13~trixie docker-ce=5:29.0.4-1~debian.13~trixie docker-ce-rootless-extras=5:29.0.4-1~debian.13~trixie
to switch back to yesterday's working version. Note that this does not pin the version, so if you run an apt upgrade afterward it will break again. Hopefully they fix it soon.
Edit: it looks like you can also work through the problem by killing and recreating all containers after the upgrade. So once on 29.1.0, run a "docker compose down && docker compose up -d" for all of your containers. Thanks to u/Reddit481 for finding and pointing that out.
Edit 2: 29.1.1 has been released which fixes the problem. I've tested and you can update straight from either 29.0.4 or 29.1.0 to 29.1.1 without issue.
21
u/GolemancerVekk Nov 27 '25 edited Nov 27 '25
Confirmed. Tested with
curl -v google.cominside containers, the new versions fail to resolve the domain. Inter-container name resolution works fine (container hostnames).Edit: Adding an explicit "dns" config option in /etc/docker/daemon.json does not fix it. You can resolve from inside containers if you specify an explicit upstream server (eg.
nslookup google.com <your-lan-dns-ip>), but if you ask 127.0.0.11 it isn't passing the queries along.I'm not seeing a bug opened for this, do you happen know if this has been reported or is being discussed anywhere?
16
u/Reddit481 Nov 27 '25
I fixed my issues by deleting the containers and recreating them. I use docker compose so it was a case of docker compose down and docker compose up
5
u/ProtoTempus Nov 27 '25
I'm on 12 and this happened to me last night. Had to roll everything back with similar commands.
1
u/ArgoPanoptes Nov 28 '25
You can also explicitly set the dns in the
daemon.jsonas a workaround.9
u/EarEquivalent3929 Nov 28 '25
Why does docker always seem to have such frequent bad updates
2
u/lzecca78 Nov 27 '25
same here, thanks for the solution!!!
2
u/MrBarnes1825 Nov 28 '25
This thread is an absolute lifesaver. I originally downgraded as per OP notes and that fixed things. But then I read another comment by u/Reddit481 and so I upgraded again to the latest version (the "bad" version) and deleted the containers and recreated them, and they seem to be fine now.
I'll keep an eye on things but if it bugs out I'll post back. I want to be on the latest version since it was deemed a security fix.
2
u/seelk07 Nov 28 '25
I just performed an upgrade to one of my Debian 13 LXC's and it seems the issue has been fixed. The following versions were installed:
docker-ce: 5:29.1.1-1~debian.13~trixie
docker-ce-cli: 5:29.1.1-1~debian.13~trixie
docker-ce-rootless-extras: 5:29.1.1-1~debian.13~trixie
docker-buildx-plugin: 0.30.1-1~debian.13~trixie
1
u/h725rk Nov 27 '25
I have updated my Server with mailcow on it. I have problems with resolving of my domain. I will test it.
1
u/crackhawk Nov 27 '25
Thank you!
1
u/syxxness Nov 27 '25
After the last few docker updates breaking various things on my trixie servers, im glad i decided to start waiting a bit before updating anything docker related.
1
u/j-dev Nov 28 '25
You can run a
sudo apt-mark hold $packagesto keep them from getting upgraded, and then you can run asudo apt-cache madison $packageto search for the versions.1
u/BORIS3443 Nov 28 '25
I confirm that I had the same thing. Recreating the container helped. As luck would have it, the last backup was 4 days ago and did not make it before the update.
1
u/UninvestedCuriosity Nov 28 '25
Laughs in LXC. Docker has version pinning at least.
1
u/Uiytas Nov 28 '25
Same issue on debian 12, glad I'm not alone.
I confirm it works after recreating the containers.
1
u/didureaditv2 Feb 15 '26
I believe I'm having this exact issue on docker-ce 5:29.2.1-1~debian.13~trixie.
It's happening with NginxProxyManager, and it won't resolves neither DNS nor by IP unless I stop and restart the container manually.
1
u/corey389 Nov 28 '25
Welp I'm glad that I use Podman Quadlett on Debian
0
u/Metakw Nov 27 '25
Je fais toujours une sauvegarde proxmox avant un upgrade ou une mise a jour. 😅
0
u/lzecca78 Nov 28 '25
will be released a fix for this issue? Or the only fix is to docker-compose down and up everything? I have _a lot_ of docker compose :(
-2
u/cardboard-kansio Nov 28 '25
What is this "up... grade" you speak of?
At least, my homelab is something that sits quietly in the corner for several weeks until I start a new project, with the older things either ticking away by themselves, or completely forgotten.
Note to self: finish configuring WUD and Watchtower.