mirror of
https://github.com/containers/podman.git
synced 2025-12-11 17:27:19 +08:00
rootless, search: do not create a new userns
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> Closes: #1360 Approved by: vrothberg
This commit is contained in:
committed by
Atomic Bot
parent
ec07b2d021
commit
c33b359ed1
@@ -32,6 +32,7 @@ var cmdsNotRequiringRootless = map[string]bool{
|
||||
"login": true,
|
||||
"logout": true,
|
||||
"kill": true,
|
||||
"search": true,
|
||||
"stop": true,
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@ import (
|
||||
|
||||
"github.com/containers/image/docker"
|
||||
"github.com/containers/libpod/cmd/podman/formats"
|
||||
"github.com/containers/libpod/cmd/podman/libpodruntime"
|
||||
"github.com/containers/libpod/libpod/common"
|
||||
sysreg "github.com/containers/libpod/pkg/registries"
|
||||
"github.com/docker/distribution/reference"
|
||||
@@ -108,12 +107,6 @@ func searchCmd(c *cli.Context) error {
|
||||
return err
|
||||
}
|
||||
|
||||
runtime, err := libpodruntime.GetRuntime(c)
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "could not get runtime")
|
||||
}
|
||||
defer runtime.Shutdown(false)
|
||||
|
||||
format := genSearchFormat(c.String("format"))
|
||||
opts := searchOpts{
|
||||
format: format,
|
||||
|
||||
Reference in New Issue
Block a user