From fe2fd57aec75e4decfe2f07b830cce0f0ce3dd3e Mon Sep 17 00:00:00 2001 From: BrettC5159 <59835570+BrettC5159@users.noreply.github.com> Date: Wed, 11 Oct 2023 15:09:33 -0400 Subject: [PATCH] Update _index.md Make the port mapping table easier to read. --- content/network/_index.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/content/network/_index.md b/content/network/_index.md index 01bd4ad009..88d1af9a86 100644 --- a/content/network/_index.md +++ b/content/network/_index.md @@ -38,12 +38,12 @@ This creates a firewall rule in the host, mapping a container port to a port on the Docker host to the outside world. Here are some examples: -| Flag value | Description | -| ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -| `-p 8080:80` | Map TCP port 80 in the container to port `8080` on the Docker host. | -| `-p 192.168.1.100:8080:80` | Map TCP port 80 in the container to port `8080` on the Docker host for connections to host IP `192.168.1.100`. | -| `-p 8080:80/udp` | Map UDP port 80 in the container to port `8080` on the Docker host. | -| `-p 8080:80/tcp -p 8080:80/udp` | Map TCP port 80 in the container to TCP port `8080` on the Docker host, and map UDP port 80 in the container to UDP port `8080` on the Docker host. | +| Flag value | Description | +| ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | +| `-p 8080:80` | Map port `8080` on the Docker host to TCP port `80` in the container. | +| `-p 192.168.1.100:8080:80` | Map port `8080` on the Docker host IP `192.168.1.100` to TCP port `80` in the container. | +| `-p 8080:80/udp` | Map port `8080` on the Docker host to UDP port `80` in the container. | +| `-p 8080:80/tcp -p 8080:80/udp` | Map TCP port `8080` on the Docker host to TCP port `80` in the container, and map UDP port `8080` on the Docker host to UDP port `80` in the container.| > **Important** > @@ -141,4 +141,4 @@ in the `docker run` reference documentation. ## Proxy server If your container needs to use a proxy server, see -[Use a proxy server](proxy.md). \ No newline at end of file +[Use a proxy server](proxy.md).