summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/mount.go6
1 files changed, 1 insertions, 5 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())
}