Merge pull request #11449 from NullableInt/patch-1

Update container-networking.md
This commit is contained in:
Usha Mandya
2020-09-30 13:49:56 +01:00
committed by GitHub

View File

@@ -23,8 +23,8 @@ By default, when you create or run a container using `docker create` or `docker
it does not publish any of its ports to the outside world. To make a port available
to services outside of Docker, or to Docker containers which are not connected to
the container's network, use the `--publish` or `-p` flag. This creates a firewall
rule which maps a container port to a port on the Docker host. Here are some examples.
to the outside world. To make a port available to services outside of Docker, or
rule which maps a container port to a port on the Docker host to the outside world.
Here are some examples. To make a port available to services outside of Docker, or
to Docker containers which are not connected to the container's network, use the
`--publish` or `-p` flag. This creates a firewall rule which maps a container
port to a port on the Docker host. Here are some examples.