> For the complete documentation index, see [llms.txt](https://til.devjugal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.devjugal.com/docker/docker-publish-port.md).

# Docker Publish Port

By default Docker does not expose Container's Port to the Host, to do so we can `--publish` or `-p` flag, which exposes Container's Port(s) to Host.

## Example

```bash
docker run -d -it \
           -p 43210:43210/udp \
           --name bombsquad \
           crazyuploader/bombsquad
```

Here, we're exposing `UDP Port 43210` to the Host.

***Source:*** [***Docker Docs***](https://docs.docker.com/config/containers/container-networking/#published-ports)
