summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2019-02-11 10:19:00 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2019-02-11 10:19:45 +0100
commit585f2963aaef6e54aedf33122498d1e772cc90fd (patch)
tree0c22c14e87fd5af62063919d6f6537cecc953140 /cmd/podman
parent52c3d171eeebbfefcda425af44310173b1f40161 (diff)
downloadpodman-585f2963aaef6e54aedf33122498d1e772cc90fd.tar.gz
podman-585f2963aaef6e54aedf33122498d1e772cc90fd.tar.bz2
podman-585f2963aaef6e54aedf33122498d1e772cc90fd.zip
pod: drop not valid check for rootless
rootless networks support port binding if the underlying slirp4netns is new enough. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/pod_create.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/cmd/podman/pod_create.go b/cmd/podman/pod_create.go
index 9ac5d94a9..35e58df31 100644
--- a/cmd/podman/pod_create.go
+++ b/cmd/podman/pod_create.go
@@ -9,7 +9,6 @@ import (
"github.com/containers/libpod/cmd/podman/libpodruntime"
"github.com/containers/libpod/cmd/podman/shared"
"github.com/containers/libpod/libpod"
- "github.com/containers/libpod/pkg/rootless"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
@@ -82,9 +81,6 @@ func podCreateCmd(c *cliconfig.PodCreateValues) error {
if !c.Infra {
return errors.Errorf("you must have an infra container to publish port bindings to the host")
}
- if rootless.IsRootless() {
- return errors.Errorf("rootless networking does not allow port binding to the host")
- }
}
if !c.Infra && c.Flag("share").Changed && c.Share != "none" && c.Share != "" {