summaryrefslogtreecommitdiff
path: root/cmd/podman/images/unmount.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/images/unmount.go')
-rw-r--r--cmd/podman/images/unmount.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/cmd/podman/images/unmount.go b/cmd/podman/images/unmount.go
index 50dc972e8..3af959b9f 100644
--- a/cmd/podman/images/unmount.go
+++ b/cmd/podman/images/unmount.go
@@ -3,6 +3,7 @@ package images
import (
"fmt"
+ "github.com/containers/podman/v2/cmd/podman/common"
"github.com/containers/podman/v2/cmd/podman/registry"
"github.com/containers/podman/v2/cmd/podman/utils"
"github.com/containers/podman/v2/pkg/domain/entities"
@@ -19,11 +20,12 @@ var (
An unmount can be forced with the --force flag.
`
unmountCommand = &cobra.Command{
- Use: "unmount [options] IMAGE [IMAGE...]",
- Aliases: []string{"umount"},
- Short: "Unmount an image's root filesystem",
- Long: description,
- RunE: unmount,
+ Use: "unmount [options] IMAGE [IMAGE...]",
+ Aliases: []string{"umount"},
+ Short: "Unmount an image's root filesystem",
+ Long: description,
+ RunE: unmount,
+ ValidArgsFunction: common.AutocompleteImages,
Example: `podman unmount imgID
podman unmount imgID1 imgID2 imgID3
podman unmount --all`,