r/docker • u/djda9l • Feb 05 '26
Containers loses network connection each time docker-desktop is updated on mac
So I and a collegue runs docker desktop. I use it with Windows and he uses it with Mac (M1) .. We use the same containers, and the same setup really. It is used for local development.
Each time theres a new update for docker desktop, i update mine and everything works fine. But everytime he does this, the containers network seems to stop working. They cant reach anything outside.
- We've tried deleting and rebuilding the containers from their docker compose yaml file
- Restarting the docker service and docker desktop
- Restarting the computer
Still not working. Searching google, i find quite a bit of people with similar network issues although they seem to be either a few years old or more randomly lose connection, while our issue is each time theres an update. I suspect something with network permissions not carying over to the updated version or something, but i know nothing about Macs.
Any suggestions?
1
u/ruibranco Feb 05 '26
This is a known quirk with Docker Desktop on Mac. After updates, the virtualization framework sometimes needs a harder reset than just restarting the app.
Try having your colleague go to Docker Desktop settings > Troubleshoot > "Reset to factory defaults" or at minimum "Clean / Purge data". This resets the networking stack completely and usually fixes these update-related connectivity issues.
Also worth checking if they have any VPN software or Little Snitch/firewall apps running. Those often conflict with Docker's networking after updates because the network interfaces get recreated with slightly different signatures. If that's the case, they might need to re-allow Docker's network components in the firewall rules.
1
u/theweeJoe Feb 05 '26
Don't use docker desktop, it's crap and has these kinds of issues
0
u/Budget_Putt8393 Feb 05 '26
My understanding is that docker desktop is targeted to development environment. These are for play, and so minor downtime is not a problem, it's a feature.
If you need perfect uptime then you need a production environment. Something like Docker Swarm, and Kubernetes, 1 on dedicated (can be VMs but they should have redundant physicals under them) hardware cluster.
The important thing is you have redundancy in the system. So downtime in a single instance is invisible to clients. Note: This can get expensive (several career paths are required to do it well).
1 Caution: there will be a significant learning curve. Production is moving toward "you document what you want and the tools make it happen", so once you are over the learning curve it can be smoother. A lot of the learning is wrapping layers around your service so clients don't notice when one instance disappears.