Hey everyone! I've been having a weird issue with my Debian and Ubuntu containers not being able to access the internet. When I try to run `apt update`, it times out, which is strange because my Alpine containers have no issues running `apk update` or even pinging the internet.
My setup is a Debian server that's somewhat customized within a corporate network. I've modified the IP, gateway, and DNS settings, which might be the culprit. But if my Alpine containers can connect just fine, what's wrong with the Debian ones?
I've tried using both Docker and Podman in rootless mode, but I'm still hitting the same wall. Also, if anyone has a Debian image that comes with networking tools, that would be great! Thanks for any help!
1 Answer
It sounds like a tricky situation! Could you share the Docker run command or your compose file? The issues you’re describing could be due to the way your containers are configured rather than a broader host or Docker problem. If you can post some specifics without violating company policies, that would help a lot! Also, building your own Debian image is straightforward—just create a Dockerfile and install the tools you need. Let us know if you need tips on that!
Thanks for the response! I can share that I'm using simple commands like `docker run -it trixie` or `bookworm`. The problem persists even during builds. My workstation setup isn't overly complex, but I did modify resolv.conf. I'm starting to suspect it might have something to do with Debian's libgc versus Alpine's musl. I'm on Debian 13, fresh install.