Skip to content
Discussion options

You must be logged in to vote

The short version is that 127.0.0.1 is the safe default for the binary, while 0.0.0.0 is usually necessary for the common multi-container topology.

Loopback is scoped to a network namespace:

  • When the binary runs directly on a host, 127.0.0.1 means only processes on that host can reach it.
  • When it runs in a container, 127.0.0.1 means only processes inside that same container can reach it. A sibling Traefik or Dozzle container connects through the proxy container bridge interface, not its loopback interface, so the connection fails.
  • 0.0.0.0 inside the container binds the bridge interface as well and makes sibling-container access possible.

The important distinction is that binding 0.0.0.0 …

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@NotaInutilis
Comment options

Answer selected by NotaInutilis
Comment options

You must be logged in to vote
1 reply
@NotaInutilis
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants