summaryrefslogtreecommitdiff
path: root/cmd/podman/machine/inspect.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/machine/inspect.go')
-rw-r--r--cmd/podman/machine/inspect.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/machine/inspect.go b/cmd/podman/machine/inspect.go
index 4600a2b6d..d69c382f2 100644
--- a/cmd/podman/machine/inspect.go
+++ b/cmd/podman/machine/inspect.go
@@ -20,6 +20,7 @@ var (
Use: "inspect [options] [MACHINE...]",
Short: "Inspect an existing machine",
Long: "Provide details on a managed virtual machine",
+ PersistentPreRunE: rootlessOnly,
RunE: inspect,
Example: `podman machine inspect myvm`,
ValidArgsFunction: autocompleteMachine,