diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-03-19 12:08:52 +0100 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-04-01 15:32:58 +0200 |
commit | 72382a12a7b5ac85e53474dfd6dcd83cd64a2738 (patch) | |
tree | 583f29064a2f11241895c23eabbd75cc1d5eb332 /cmd/podman/pod_rm.go | |
parent | ed326206f2b0ed80cdeddc63430bfbe60016c7df (diff) | |
download | podman-72382a12a7b5ac85e53474dfd6dcd83cd64a2738.tar.gz podman-72382a12a7b5ac85e53474dfd6dcd83cd64a2738.tar.bz2 podman-72382a12a7b5ac85e53474dfd6dcd83cd64a2738.zip |
rootless: use a single user namespace
simplify the rootless implementation to use a single user namespace
for all the running containers.
This makes the rootless implementation behave more like root Podman,
where each container is created in the host environment.
There are multiple advantages to it: 1) much simpler implementation as
there is only one namespace to join. 2) we can join namespaces owned
by different containers. 3) commands like ps won't be limited to what
container they can access as previously we either had access to the
storage from a new namespace or access to /proc when running from the
host. 4) rootless varlink works. 5) there are only two ways to enter
in a namespace, either by creating a new one if no containers are
running or joining the existing one from any container.
Containers created by older Podman versions must be restarted.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'cmd/podman/pod_rm.go')
-rw-r--r-- | cmd/podman/pod_rm.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/cmd/podman/pod_rm.go b/cmd/podman/pod_rm.go index 401073674..cd9f23fe1 100644 --- a/cmd/podman/pod_rm.go +++ b/cmd/podman/pod_rm.go @@ -5,7 +5,6 @@ import ( "github.com/containers/libpod/cmd/podman/cliconfig" "github.com/containers/libpod/pkg/adapter" - "github.com/containers/libpod/pkg/rootless" "github.com/pkg/errors" "github.com/sirupsen/logrus" "github.com/spf13/cobra" @@ -53,14 +52,6 @@ func podRmCmd(c *cliconfig.PodRmValues) error { } defer runtime.Shutdown(false) - if rootless.IsRootless() { - var err error - c.InputArgs, c.All, c.Latest, err = joinPodNS(runtime, c.All, c.Latest, c.InputArgs) - if err != nil { - return err - } - } - podRmIds, podRmErrors := runtime.RemovePods(getContext(), c) for _, p := range podRmIds { fmt.Println(p) |