diff options
author | Brent Baude <bbaude@redhat.com> | 2020-02-22 10:19:11 -0600 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2020-02-22 12:45:15 -0600 |
commit | 0184714a82696feec33b383bfd98875712173e6e (patch) | |
tree | 1cecbe40de371ac953f947170246160df279c727 /cmd/podman/common.go | |
parent | 2850ec5f507ee6c3202f09e099b01a4e550ef0d9 (diff) | |
download | podman-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/common.go')
-rw-r--r-- | cmd/podman/common.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/common.go b/cmd/podman/common.go index 6fa2b3c71..4eeb09d42 100644 --- a/cmd/podman/common.go +++ b/cmd/podman/common.go @@ -396,6 +396,10 @@ func getCreateFlags(c *cliconfig.PodmanCommand) { "Assign a name to the container", ) createFlags.Bool( + "no-healthcheck", false, + "Disable healthchecks on container", + ) + createFlags.Bool( "oom-kill-disable", false, "Disable OOM Killer", ) |