mirror of https://github.com/docker/docs.git
consistency across docs (#17611)
This commit is contained in:
parent
104ad13c2b
commit
7f118cc2e9
|
@ -276,10 +276,10 @@ routing on the individual Docker daemon hosts.
|
|||
|
||||
| Flag value | Description |
|
||||
|---------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `-p 8080:80` | Map TCP port 80 in the container to port 8080 on the overlay network. |
|
||||
| `-p 8080:80/udp` | Map UDP port 80 in the container to port 8080 on the overlay network. |
|
||||
| `-p 8080:80/sctp` | Map SCTP port 80 in the container to port 8080 on the overlay network. |
|
||||
| `-p 8080:80/tcp -p 8080:80/udp` | Map TCP port 80 in the container to TCP port 8080 on the overlay network, and map UDP port 80 in the container to UDP port 8080 on the overlay network. |
|
||||
| `-p 8080:80` | Map TCP port 80 in the container to port `8080` on the overlay network. |
|
||||
| `-p 8080:80/udp` | Map UDP port 80 in the container to port `8080` on the overlay network. |
|
||||
| `-p 8080:80/sctp` | Map SCTP port 80 in the container to port `8080` on the overlay network. |
|
||||
| `-p 8080:80/tcp -p 8080:80/udp` | Map TCP port 80 in the container to TCP port `8080` on the overlay network, and map UDP port 80 in the container to UDP port `8080` on the overlay network. |
|
||||
|
||||
### Container discovery
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ Here are some examples:
|
|||
| `-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. |
|
||||
| `-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. |
|
||||
|
||||
> **Important**
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue