# Checking Ports

> How do you see which host ports a container's ports are published on, and how do you debug when a published port is not reachable?

Canonical: https://www.internhack.in/learn/interview/docker-containers/docker-port-mapping-check
Last updated: 2026-11-28

Difficulty: Beginner

## Question

How do you see which host ports a container's ports are published on, and how do you debug when a published port is not reachable?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

docker port, Port publishing (-p), EXPOSE vs publish, Host binding address, docker inspect

Previous: [Wait Command](https://www.internhack.in/learn/interview/docker-containers/docker-wait-command) · Next: [Filtering Images](https://www.internhack.in/learn/interview/docker-containers/docker-image-filtering) · [All of Docker & Containers](https://www.internhack.in/learn/interview/docker-containers)

## More Docker & Containers questions

- [User Check](https://www.internhack.in/learn/interview/docker-containers/docker-user-id-check)
- [Images vs. Containers](https://www.internhack.in/learn/interview/docker-containers/docker-images-vs-containers)
- [CMD vs. ENTRYPOINT](https://www.internhack.in/learn/interview/docker-containers/docker-cmd-vs-entrypoint)
- [Multi-stage Builds](https://www.internhack.in/learn/interview/docker-containers/docker-multi-stage-builds)
- [Volumes vs. Bind Mounts](https://www.internhack.in/learn/interview/docker-containers/docker-volumes-vs-bind-mounts)
- [COPY vs. ADD](https://www.internhack.in/learn/interview/docker-containers/docker-copy-vs-add)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Docker & Containers](https://www.internhack.in/learn/interview/docker-containers)
