diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-03-12 13:09:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-12 13:09:13 -0700 |
commit | 883566fbc068cb9c24414b210d01340193575317 (patch) | |
tree | 2ae01aa39a9298b4b69ae4e15906d6f8b3c098bd /cmd/podman/common.go | |
parent | 1c45b42e9ff972d9645735118635e4186e6411f8 (diff) | |
parent | 03716cf7f331fa5b5ffab23dcc863bedd66b5dfc (diff) | |
download | podman-883566fbc068cb9c24414b210d01340193575317.tar.gz podman-883566fbc068cb9c24414b210d01340193575317.tar.bz2 podman-883566fbc068cb9c24414b210d01340193575317.zip |
Merge pull request #2562 from baude/healtcheckphase2
healthcheck phase 2
Diffstat (limited to 'cmd/podman/common.go')
-rw-r--r-- | cmd/podman/common.go | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/cmd/podman/common.go b/cmd/podman/common.go index 30eaa95d8..79b7495ab 100644 --- a/cmd/podman/common.go +++ b/cmd/podman/common.go @@ -287,7 +287,26 @@ func getCreateFlags(c *cliconfig.PodmanCommand) { createFlags.Bool( "help", false, "", ) - + createFlags.String( + "healthcheck-command", "", + "set a healthcheck command for the container ('none' disables the existing healthcheck)", + ) + createFlags.String( + "healthcheck-interval", "30s", + "set an interval for the healthchecks", + ) + createFlags.Uint( + "healthcheck-retries", 3, + "the number of retries allowed before a healthcheck is considered to be unhealthy", + ) + createFlags.String( + "healthcheck-start-period", "0s", + "the initialization time needed for a container to bootstrap", + ) + createFlags.String( + "healthcheck-timeout", "30s", + "the maximum time allowed to complete the healthcheck before an interval is considered failed", + ) createFlags.StringP( "hostname", "h", "", "Set container hostname", |