mirror of https://github.com/docker/cli.git
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 a955ed6477
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
5908cdf87c
commit
040920f428
|
@ -352,6 +352,11 @@ machine. You can also specify `udp` and `sctp` ports.
|
||||||
The [Docker User Guide](https://docs.docker.com/engine/userguide/networking/default_network/dockerlinks/)
|
The [Docker User Guide](https://docs.docker.com/engine/userguide/networking/default_network/dockerlinks/)
|
||||||
explains in detail how to manipulate ports in Docker.
|
explains in detail how to manipulate ports in Docker.
|
||||||
|
|
||||||
|
Note that ports which are not bound to the host (i.e., `-p 80:80` instead of
|
||||||
|
`-p 127.0.0.1:80:80`) will be accessible from the outside. This also applies if
|
||||||
|
you configured UFW to block this specific port, as Docker manages his
|
||||||
|
own iptables rules. [Read more](https://docs.docker.com/network/iptables/)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker run --expose 80 ubuntu bash
|
$ docker run --expose 80 ubuntu bash
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue