How do I allow "egress" requests from containers to the docker0 interface?

I have an issue related to the combined network on all of my Linode instances + Docker. I need to curl from inside container A to container B.

  • Both containers are behind a reverse proxy (traefik), all containers are in the same (docker-)network and seeing each other.

  • Both containers are basic nginx instances. nginx A has domain, nginx B, both responding as expected on port 443 (piped to the backend by traefik)

  • I docker exec -it <container A> bash and then try to curl -v <> from inside the container which gives an timeout. But curl -v or curl -v <hostname_container_b> succeeds (still from inside container A).

IP of my Linode instance is

My assumption here is that there is something blocking the traffic from the virtual interface of the container A, only when it reaches directly the interfaces of my hosts (either, either docker0).

I think there is a firewall rule blocking "egress" requests from the container to the docker0 interface itself.

I never touched firewall rules of my instances. When poking in iptables, it seems to me that docker itself messes a lot with iptables.

I'm stuck and as I'm not an iptables/firewall expert I'm not sure how to go on from where I'm now.

Any help appreciated, thx!

0 Replies


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct