diff --git a/cmd/podman/mount.go b/cmd/podman/mount.go index 6d640d3b42..6c6b89ee9e 100644 --- a/cmd/podman/mount.go +++ b/cmd/podman/mount.go @@ -23,10 +23,6 @@ var ( Name: "notruncate", 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 b0ebd05fbb..d02d9c0bed 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