FerryDocs
ArchitectureNetworking model

Why 127.0.0.1

Ports published on 127.0.0.1 work on each system, expose nothing by accident and never conflict.

Edit on GitHub
The hostInternetProxythe only way inInstance127.0.0.1:63120

The published port is on 127.0.0.1. Only the host itself can connect to it.

1 / 3

Three reasons

ReasonDetail
It works on On macOS and Windows, containers run in a VM. The host, where ferryd runs, cannot reach their IP addresses. Published ports work on Docker Desktop and on Linux.
Nothing is open by accidentAn app is never on the public interfaces of the machine. A private service gets a published port too, for the health checks. Only the host can reach it.
No port conflictThe old and the new instances of a listen on the same container port. Random host ports let any number of instances do that.

The cost

A can change. When Docker restarts a crashed container, the new port can be different.

The engine follows this change in two ways:

Thus the routes always have the current ports.

On this page