From 107a0ce000e6d170a0267629f91af431cb628a38 Mon Sep 17 00:00:00 2001 From: Ethan Bell Date: Sun, 29 Apr 2018 21:51:15 -0700 Subject: [PATCH] Add port publish example for particular host IP Addresses #6478 --- config/containers/container-networking.md | 1 + 1 file changed, 1 insertion(+) diff --git a/config/containers/container-networking.md b/config/containers/container-networking.md index af4be9789d..bf27fdd2cb 100644 --- a/config/containers/container-networking.md +++ b/config/containers/container-networking.md @@ -28,6 +28,7 @@ port to a port on the Docker host. 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. |