Docker Lab (6/12): Loopback 127.0.0.1 vs 0.0.0.0 in a Container

Giovanni Pace

Description

Why is an API in Docker still unreachable even with the right port mapping? In this lab episode we look at the difference between 127.0.0.1 and 0.0.0.0: listening on the wrong host leaves the service on the loopback interface only.