Hey everyone, I've set up my homelab with Docker Compose version 29.3.1, and I'm having a bit of a problem. My services are running really slow. After a week of troubleshooting, I've noticed that the speeds within my Docker containers are significantly less than what my host can handle. I ran an iperf3 test, and my Proxmox host and Ubuntu server both clocked in at around 650 Mbps. However, when I check speed from within the containers, it drops to around 50 Mbps, fluctuating at different times of the day. This issue seems consistent across multiple containers. Here's what I've tried so far: updating the host and Proxmox, switching the default DNS to 8.8.8.8, changing nameservers, and even attempting to adjust the MTU (which caused the daemon to refuse to start). I'm at a loss and could really use some guidance. Thanks in advance!
3 Answers
Also, are you running your containers rootless? That could be a factor too if you are using slirp4netns, which might slow things down. Just something to consider if you're troubleshooting.
So, are you using the default bridge network for your containers? It might be worth trying to create a container with the host network mode to see if the speed improves. If it does, the slowdown could be due to NAT and IP tables affecting performance.
Yeah, I think switching to host networking could help. I faced a similar issue before, and once I switched, my speeds were much better. Definitely worth a shot!
I’d recommend running iperf3 from within your container directly. This will help you determine whether the slowdown is due to internet speeds or if it's an issue with the network speed on your host. Try testing with a local machine to a container and see what results you get.

Yes, I am running them rootless but even when I tried launching with sudo, there was no change in speed. I’ll keep digging into this though. Thanks!