summaryrefslogtreecommitdiff
path: root/cmd/podman/run.go
diff options
context:
space:
mode:
authorHunor Csomortáni <csomh@redhat.com>2019-07-04 14:24:09 +0200
committerHunor Csomortáni <csomh@redhat.com>2019-07-16 06:15:28 +0200
commit3e53bfe36e385f6d85b10d1eadab0a249f580f97 (patch)
tree290cb9b711e1a4e72556f25adc277bc13f1555c7 /cmd/podman/run.go
parent51c00eae8b22356e72c84601e8c4f88b739755c7 (diff)
downloadpodman-3e53bfe36e385f6d85b10d1eadab0a249f580f97.tar.gz
podman-3e53bfe36e385f6d85b10d1eadab0a249f580f97.tar.bz2
podman-3e53bfe36e385f6d85b10d1eadab0a249f580f97.zip
Make the healthcheck flags compatible with Docker CLI
Docker CLI calls the healthcheck flags "--health-*", instead of "--healthcheck-*". Introduce the former, in order to keep compatibility, and alias the later, in order to avoid breaking current usage. Change "--healthcheck-*" to "--health-*" in the docs and tests. Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
Diffstat (limited to 'cmd/podman/run.go')
-rw-r--r--cmd/podman/run.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/run.go b/cmd/podman/run.go
index 76ab3d944..4836c99dc 100644
--- a/cmd/podman/run.go
+++ b/cmd/podman/run.go
@@ -34,6 +34,7 @@ func init() {
runCommand.SetUsageTemplate(UsageTemplate())
flags := runCommand.Flags()
flags.SetInterspersed(false)
+ flags.SetNormalizeFunc(aliasFlags)
flags.Bool("sig-proxy", true, "Proxy received signals to the process")
getCreateFlags(&runCommand.PodmanCommand)
markFlagHiddenForRemoteClient("authfile", flags)