From f54540bc341028c13eea7cab4308de3208f3b9bd Mon Sep 17 00:00:00 2001 From: Dong Chen Date: Mon, 10 Apr 2017 14:12:44 -0700 Subject: [PATCH] do not allow duration less than 1 ms in healthcheck parameters Signed-off-by: Dong Chen Upstream-commit: 1fa8221743c829986894127ec5fbd1ea611329f1 Component: cli --- components/cli/docs/reference/commandline/service_create.md | 6 +++--- components/cli/docs/reference/commandline/service_update.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/cli/docs/reference/commandline/service_create.md b/components/cli/docs/reference/commandline/service_create.md index 082dffb827..78faa98bf7 100644 --- a/components/cli/docs/reference/commandline/service_create.md +++ b/components/cli/docs/reference/commandline/service_create.md @@ -33,10 +33,10 @@ Options: --env-file list Read in a file of environment variables --group list Set one or more supplementary user groups for the container --health-cmd string Command to run to check health - --health-interval duration Time between running the check (ns|us|ms|s|m|h) + --health-interval duration Time between running the check (ms|s|m|h) --health-retries int Consecutive failures needed to report unhealthy - --health-start-period duration Start period for the container to initialize before counting retries towards unstable (ns|us|ms|s|m|h) - --health-timeout duration Maximum time to allow one check to run (ns|us|ms|s|m|h) + --health-start-period duration Start period for the container to initialize before counting retries towards unstable (ms|s|m|h) + --health-timeout duration Maximum time to allow one check to run (ms|s|m|h) --help Print usage --host list Set one or more custom host-to-IP mappings (host:ip) --hostname string Container hostname diff --git a/components/cli/docs/reference/commandline/service_update.md b/components/cli/docs/reference/commandline/service_update.md index fae6b0af89..93c5750eee 100644 --- a/components/cli/docs/reference/commandline/service_update.md +++ b/components/cli/docs/reference/commandline/service_update.md @@ -41,10 +41,10 @@ Options: --group-add list Add an additional supplementary user group to the container --group-rm list Remove a previously added supplementary user group from the container --health-cmd string Command to run to check health - --health-interval duration Time between running the check (ns|us|ms|s|m|h) + --health-interval duration Time between running the check (ms|s|m|h) --health-retries int Consecutive failures needed to report unhealthy - --health-start-period duration Start period for the container to initialize before counting retries towards unstable (ns|us|ms|s|m|h) - --health-timeout duration Maximum time to allow one check to run (ns|us|ms|s|m|h) + --health-start-period duration Start period for the container to initialize before counting retries towards unstable (ms|s|m|h) + --health-timeout duration Maximum time to allow one check to run (ms|s|m|h) --help Print usage --host-add list Add or update a custom host-to-IP mapping (host:ip) --host-rm list Remove a custom host-to-IP mapping (host:ip)