Host-to-Container Traffic
Publishing a port creates a host-side forwarding rule to a container port. Binding to 127.0.0.1 keeps the published service accessible only from the host, while binding to all interfaces can expose it externally depending on firewall and network configuration.
ADVERTISEMENT