summaryrefslogtreecommitdiff
path: root/cmd/podman/common.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-03-12 13:09:13 -0700
committerGitHub <noreply@github.com>2019-03-12 13:09:13 -0700
commit883566fbc068cb9c24414b210d01340193575317 (patch)
tree2ae01aa39a9298b4b69ae4e15906d6f8b3c098bd /cmd/podman/common.go
parent1c45b42e9ff972d9645735118635e4186e6411f8 (diff)
parent03716cf7f331fa5b5ffab23dcc863bedd66b5dfc (diff)
downloadpodman-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.go21
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",