summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/podman/containers/mount.go13
-rw-r--r--test/e2e/mount_test.go1
2 files changed, 10 insertions, 4 deletions
diff --git a/cmd/podman/containers/mount.go b/cmd/podman/containers/mount.go
index 2de1066a3..186c4df16 100644
--- a/cmd/podman/containers/mount.go
+++ b/cmd/podman/containers/mount.go
@@ -30,13 +30,18 @@ var (
Args: func(cmd *cobra.Command, args []string) error {
return validate.CheckAllLatestAndCIDFile(cmd, args, true, false)
},
+ Annotations: map[string]string{
+ registry.ParentNSRequired: "",
+ },
}
containerMountCommmand = &cobra.Command{
- Use: mountCommand.Use,
- Short: mountCommand.Short,
- Long: mountCommand.Long,
- RunE: mountCommand.RunE,
+ Use: mountCommand.Use,
+ Short: mountCommand.Short,
+ Long: mountCommand.Long,
+ RunE: mountCommand.RunE,
+ Args: mountCommand.Args,
+ Annotations: mountCommand.Annotations,
}
)
diff --git a/test/e2e/mount_test.go b/test/e2e/mount_test.go
index dd74f245e..657daedef 100644
--- a/test/e2e/mount_test.go
+++ b/test/e2e/mount_test.go
@@ -18,6 +18,7 @@ var _ = Describe("Podman mount", func() {
)
BeforeEach(func() {
+ SkipIfRootless()
tempdir, err = CreateTempDirInTempDir()
if err != nil {
os.Exit(1)