summaryrefslogtreecommitdiff
path: root/cmd/podman/top.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/top.go')
-rw-r--r--cmd/podman/top.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/top.go b/cmd/podman/top.go
index f1f594ebf..2e0a22d92 100644
--- a/cmd/podman/top.go
+++ b/cmd/podman/top.go
@@ -76,7 +76,7 @@ func topCmd(c *cliconfig.TopValues) error {
return errors.Errorf("you must provide the name or id of a running container")
}
- runtime, err := adapter.GetRuntime(&c.PodmanCommand)
+ runtime, err := adapter.GetRuntime(getContext(), &c.PodmanCommand)
if err != nil {
return errors.Wrapf(err, "error creating libpod runtime")
}