summaryrefslogtreecommitdiff
path: root/cmd/podman/pod_create.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/pod_create.go')
-rw-r--r--cmd/podman/pod_create.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/podman/pod_create.go b/cmd/podman/pod_create.go
index 4eb3126e3..3e712619e 100644
--- a/cmd/podman/pod_create.go
+++ b/cmd/podman/pod_create.go
@@ -71,6 +71,7 @@ var podCreateCommand = cli.Command{
Description: podCreateDescription,
Flags: podCreateFlags,
Action: podCreateCmd,
+ HideHelp: true,
SkipArgReorder: true,
UseShortOptionHandling: true,
}
@@ -79,6 +80,12 @@ func podCreateCmd(c *cli.Context) error {
var options []libpod.PodCreateOption
var err error
+ // Docker-compatibility: the "-h" flag for run/create is reserved for
+ // the hostname (see https://github.com/containers/libpod/issues/1367).
+ if c.Bool("help") {
+ cli.ShowCommandHelpAndExit(c, "run", 0)
+ }
+
if err = validateFlags(c, createFlags); err != nil {
return err
}