summaryrefslogtreecommitdiff
path: root/cmd/podman/exists.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-07-01 13:35:16 -0500
committerbaude <bbaude@redhat.com>2019-07-01 14:15:44 -0500
commitd0a0a3fbd9ebb2942c761f14fc56f3a470ae1834 (patch)
treebc4eeec5c61000bf3cc36a171afd8a47b1ae9681 /cmd/podman/exists.go
parent150778820f0f6d9f7ffdb672a8b136804378f025 (diff)
downloadpodman-d0a0a3fbd9ebb2942c761f14fc56f3a470ae1834.tar.gz
podman-d0a0a3fbd9ebb2942c761f14fc56f3a470ae1834.tar.bz2
podman-d0a0a3fbd9ebb2942c761f14fc56f3a470ae1834.zip
configure runtime without store
some podman commands do not require the use of a container/image store. in those cases, it is more effecient to not open the store, because that results in having to also close the store which can be costly when the system is under heavy write I/O loads. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/exists.go')
-rw-r--r--cmd/podman/exists.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/exists.go b/cmd/podman/exists.go
index 3d001f3d1..1e052e25f 100644
--- a/cmd/podman/exists.go
+++ b/cmd/podman/exists.go
@@ -107,7 +107,7 @@ func containerExistsCmd(c *cliconfig.ContainerExistsValues) error {
if len(args) > 1 || len(args) < 1 {
return errors.New("you may only check for the existence of one container at a time")
}
- runtime, err := adapter.GetRuntime(getContext(), &c.PodmanCommand)
+ runtime, err := adapter.GetRuntimeNoStore(getContext(), &c.PodmanCommand)
if err != nil {
return errors.Wrapf(err, "could not get runtime")
}
@@ -126,7 +126,7 @@ func podExistsCmd(c *cliconfig.PodExistsValues) error {
if len(args) > 1 || len(args) < 1 {
return errors.New("you may only check for the existence of one pod at a time")
}
- runtime, err := adapter.GetRuntime(getContext(), &c.PodmanCommand)
+ runtime, err := adapter.GetRuntimeNoStore(getContext(), &c.PodmanCommand)
if err != nil {
return errors.Wrapf(err, "could not get runtime")
}