Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit b9eb7e0

Browse files
KovahthaJeztah
authored andcommitted
Add notice about port binding and overriding of UFW to docker run reference
Signed-off-by: Kovah <mail@kovah.de> Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit a955ed6477ff204f03636061cf8cfae091d013c9) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 040920f42861a7054d780e2d02c48f4ad4f7e18c Component: cli
1 parent 68d0178 commit b9eb7e0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • components/cli/docs/reference/commandline

components/cli/docs/reference/commandline/run.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,11 @@ machine. You can also specify `udp` and `sctp` ports.
352352
The [Docker User Guide](https://docs.docker.com/engine/userguide/networking/default_network/dockerlinks/)
353353
explains in detail how to manipulate ports in Docker.
354354

355+
Note that ports which are not bound to the host (i.e., `-p 80:80` instead of
356+
`-p 127.0.0.1:80:80`) will be accessible from the outside. This also applies if
357+
you configured UFW to block this specific port, as Docker manages his
358+
own iptables rules. [Read more](https://docs.docker.com/network/iptables/)
359+
355360
```bash
356361
$ docker run --expose 80 ubuntu bash
357362
```

0 commit comments

Comments
 (0)