aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-07-06 19:51:21 -0400
committerGitHub <noreply@github.com>2020-07-06 19:51:21 -0400
commit6dae4bae2e29fd16996b67b59df6d1d11fe43981 (patch)
tree6a7d8e606263e9ec2b78ec50c3a8f379e9dc1d33
parente3e2b1e65930bfc40c5b60802c4d6ea175169732 (diff)
parent8ab0abbb06b310707eee0a5ece0f9fb0bac8d234 (diff)
downloadpodman-6dae4bae2e29fd16996b67b59df6d1d11fe43981.tar.gz
podman-6dae4bae2e29fd16996b67b59df6d1d11fe43981.tar.bz2
podman-6dae4bae2e29fd16996b67b59df6d1d11fe43981.zip
Merge pull request #6874 from mheon/backport_mount_fix
Backport 'podman mount' bugfix
-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 44af27801..37ee92177 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)