mirror of
https://github.com/containers/podman.git
synced 2025-06-20 09:03:43 +08:00
Merge pull request #6868 from mheon/fix_mount_rootless
Fix bug where `podman mount` didn't error as rootless
This commit is contained in:
@ -30,13 +30,18 @@ var (
|
|||||||
Args: func(cmd *cobra.Command, args []string) error {
|
Args: func(cmd *cobra.Command, args []string) error {
|
||||||
return validate.CheckAllLatestAndCIDFile(cmd, args, true, false)
|
return validate.CheckAllLatestAndCIDFile(cmd, args, true, false)
|
||||||
},
|
},
|
||||||
|
Annotations: map[string]string{
|
||||||
|
registry.ParentNSRequired: "",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
containerMountCommmand = &cobra.Command{
|
containerMountCommmand = &cobra.Command{
|
||||||
Use: mountCommand.Use,
|
Use: mountCommand.Use,
|
||||||
Short: mountCommand.Short,
|
Short: mountCommand.Short,
|
||||||
Long: mountCommand.Long,
|
Long: mountCommand.Long,
|
||||||
RunE: mountCommand.RunE,
|
RunE: mountCommand.RunE,
|
||||||
|
Args: mountCommand.Args,
|
||||||
|
Annotations: mountCommand.Annotations,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@ var _ = Describe("Podman mount", func() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
|
SkipIfRootless()
|
||||||
tempdir, err = CreateTempDirInTempDir()
|
tempdir, err = CreateTempDirInTempDir()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
Reference in New Issue
Block a user