diff options
-rw-r--r-- | cmd/podman/mount.go | 6 | ||||
-rw-r--r-- | docs/podman-mount.1.md | 4 |
2 files changed, 1 insertions, 9 deletions
diff --git a/cmd/podman/mount.go b/cmd/podman/mount.go index 6d640d3b4..6c6b89ee9 100644 --- a/cmd/podman/mount.go +++ b/cmd/podman/mount.go @@ -24,10 +24,6 @@ var ( Usage: "do not truncate output", }, cli.StringFlag{ - Name: "label", - Usage: "SELinux label for the mount point", - }, - cli.StringFlag{ Name: "format", Usage: "Change the output format to Go template", }, @@ -83,7 +79,7 @@ func mountCmd(c *cli.Context) error { if err != nil { return errors.Wrapf(err, "error looking up container %q", args[0]) } - mountPoint, err := ctr.Mount(c.String("label")) + mountPoint, err := ctr.Mount(ctr.MountLabel()) if err != nil { return errors.Wrapf(err, "error mounting container %q", ctr.ID()) } diff --git a/docs/podman-mount.1.md b/docs/podman-mount.1.md index b0ebd05fb..d02d9c0be 100644 --- a/docs/podman-mount.1.md +++ b/docs/podman-mount.1.md @@ -30,10 +30,6 @@ returned. Do not truncate IDs in output. -**--label** - -SELinux label for the mount point - ## EXAMPLE podman mount c831414b10a3 |