mirror of
https://github.com/docker/docs.git
synced 2026-04-12 14:25:46 +07:00
committed by
Joao Fernandes
parent
1ab63c4b0f
commit
107a0ce000
@@ -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. |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user