summaryrefslogtreecommitdiff
path: root/cmd/podman/pods/create.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-06-01 19:41:46 +0200
committerGitHub <noreply@github.com>2021-06-01 19:41:46 +0200
commitcbffdddce6d741eac4f3efa132016aba99683500 (patch)
tree927b74764e93a47aae61597100502acbe17f1afd /cmd/podman/pods/create.go
parent7a52440a6d7fe7ac1ddccf9fe7247d7abca8ecce (diff)
parent7ef3981abe2412727840a2886489a08c03a05299 (diff)
downloadpodman-cbffdddce6d741eac4f3efa132016aba99683500.tar.gz
podman-cbffdddce6d741eac4f3efa132016aba99683500.tar.bz2
podman-cbffdddce6d741eac4f3efa132016aba99683500.zip
Merge pull request #10488 from baude/machinehostnetwork
Enable port forwarding on host
Diffstat (limited to 'cmd/podman/pods/create.go')
-rw-r--r--cmd/podman/pods/create.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/podman/pods/create.go b/cmd/podman/pods/create.go
index 3c2c8a3bc..735dfa78c 100644
--- a/cmd/podman/pods/create.go
+++ b/cmd/podman/pods/create.go
@@ -166,10 +166,11 @@ func create(cmd *cobra.Command, args []string) error {
defer errorhandling.SyncQuiet(podIDFD)
}
- createOptions.Net, err = common.NetFlagsToNetOptions(cmd)
+ createOptions.Net, err = common.NetFlagsToNetOptions(cmd, createOptions.Infra)
if err != nil {
return err
}
+
if len(createOptions.Net.PublishPorts) > 0 {
if !createOptions.Infra {
return errors.Errorf("you must have an infra container to publish port bindings to the host")