summaryrefslogtreecommitdiff
path: root/pkg/specgen/specgen.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-06-29 13:52:47 -0400
committerGitHub <noreply@github.com>2020-06-29 13:52:47 -0400
commite0b93af70f1f1a183c99a350c6e588898b45c717 (patch)
tree77271b38b5e61bff58ab3ba6f8e58b0ab48645cb /pkg/specgen/specgen.go
parentc682ca3d35a3e4f9265e10dc9898cbe3ac3d35a2 (diff)
parent3601b96600807214d74b9c77c614fa03bfae30a8 (diff)
downloadpodman-e0b93af70f1f1a183c99a350c6e588898b45c717.tar.gz
podman-e0b93af70f1f1a183c99a350c6e588898b45c717.tar.bz2
podman-e0b93af70f1f1a183c99a350c6e588898b45c717.zip
Merge pull request #6808 from mheon/allow_empty_hostport
Allow empty host port in --publish flag
Diffstat (limited to 'pkg/specgen/specgen.go')
-rw-r--r--pkg/specgen/specgen.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/specgen/specgen.go b/pkg/specgen/specgen.go
index 3d5bf03e5..361f09379 100644
--- a/pkg/specgen/specgen.go
+++ b/pkg/specgen/specgen.go
@@ -435,7 +435,8 @@ type PortMapping struct {
ContainerPort uint16 `json:"container_port"`
// HostPort is the port number that will be forwarded from the host into
// the container.
- // If omitted, will be assumed to be identical to
+ // If omitted, a random port on the host (guaranteed to be over 1024)
+ // will be assigned.
HostPort uint16 `json:"host_port,omitempty"`
// Range is the number of ports that will be forwarded, starting at
// HostPort and ContainerPort and counting up.