InfraMaxx

Docker & Containers

Publishing ports with -p, and the database you exposed by accident

Beginner · 5 min read · quiz included

Docker port publishing can expose a container service through the host. One missing address in -p turns a local test database into one reachable from the internet.

What is in the lesson

Read this lessonFree. No account needed.

More in Docker & Containers

All 48 Docker & Containers lessons