summaryrefslogtreecommitdiff
path: root/cmd/podman/shared/intermediate.go
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-02-22 10:19:11 -0600
committerBrent Baude <bbaude@redhat.com>2020-02-22 12:45:15 -0600
commit0184714a82696feec33b383bfd98875712173e6e (patch)
tree1cecbe40de371ac953f947170246160df279c727 /cmd/podman/shared/intermediate.go
parent2850ec5f507ee6c3202f09e099b01a4e550ef0d9 (diff)
downloadpodman-0184714a82696feec33b383bfd98875712173e6e.tar.gz
podman-0184714a82696feec33b383bfd98875712173e6e.tar.bz2
podman-0184714a82696feec33b383bfd98875712173e6e.zip
Add --no-healthcheck command to create/run
Now support --no-healthcheck option to disable defined healthchecks in a container image. --health-cmd=none remains supported as well. Fixes: #5299 Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/shared/intermediate.go')
-rw-r--r--cmd/podman/shared/intermediate.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/shared/intermediate.go b/cmd/podman/shared/intermediate.go
index ee212234f..e76750042 100644
--- a/cmd/podman/shared/intermediate.go
+++ b/cmd/podman/shared/intermediate.go
@@ -425,6 +425,7 @@ func NewIntermediateLayer(c *cliconfig.PodmanCommand, remote bool) GenericCLIRes
m["memory-swappiness"] = newCRInt64(c, "memory-swappiness")
m["name"] = newCRString(c, "name")
m["network"] = newCRString(c, "network")
+ m["no-healthcheck"] = newCRBool(c, "no-healthcheck")
m["no-hosts"] = newCRBool(c, "no-hosts")
m["oom-kill-disable"] = newCRBool(c, "oom-kill-disable")
m["oom-score-adj"] = newCRInt(c, "oom-score-adj")