summaryrefslogtreecommitdiff
path: root/cmd/podman/machine/rm.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/machine/rm.go')
-rw-r--r--cmd/podman/machine/rm.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/machine/rm.go b/cmd/podman/machine/rm.go
index a6e66265c..362c9a7d3 100644
--- a/cmd/podman/machine/rm.go
+++ b/cmd/podman/machine/rm.go
@@ -20,6 +20,7 @@ var (
Use: "rm [options] [MACHINE]",
Short: "Remove an existing machine",
Long: "Remove a managed virtual machine ",
+ PersistentPreRunE: rootlessOnly,
RunE: rm,
Args: cobra.MaximumNArgs(1),
Example: `podman machine rm myvm`,