Scenarios · Docker · DS3.1 · 10 min · L0
Priya's portfolio, on localhost only
It works inside. It's running. And nobody can see it.
✓ Validated on Docker Engine 29.9.3 · Run 1 · 2026-11-20Preview
The story
Placement week in Bengaluru. Priya, a second-year student, packs her portfolio page into a Docker image. She starts it with -p 8111:8000 and sends the link to her mentor. Ten seconds later: "Not loading." Priya checks. The container is running. The port is published. Inside the container the page loads. So who is lying?
1 · Predict first
Where you will meet this at work
- Flask's development server listens on 127.0.0.1 by default. It works on your laptop and goes silent in a container.
- Kubernetes: the Pod is Running, the Service has endpoints, and nothing answers. Same bug, one level up.
- "Works from docker exec, fails from outside" is a classic first week on call.