summaryrefslogtreecommitdiff
path: root/runconfig/opts
diff options
context:
space:
mode:
authormilindchawre <milindchawre@gmail.com>2016-10-25 12:22:07 +0000
committermilindchawre <milindchawre@gmail.com>2016-11-09 12:17:28 +0000
commitecb59a2283be35b2dba2951ed1542afe4e896d8a (patch)
tree17dcc3768c53e52af852bac8e63caa0fb749fcff /runconfig/opts
parent806f09bf32c49cd0493a97522cd809b09b52dfb6 (diff)
downloaddocker-ecb59a2283be35b2dba2951ed1542afe4e896d8a.tar.gz
Fixes #24083 : Improving cli help for flags with duration option
Signed-off-by: milindchawre <milindchawre@gmail.com>
Diffstat (limited to 'runconfig/opts')
-rw-r--r--runconfig/opts/parse.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/runconfig/opts/parse.go b/runconfig/opts/parse.go
index 5a53923709..3b96301207 100644
--- a/runconfig/opts/parse.go
+++ b/runconfig/opts/parse.go
@@ -218,9 +218,9 @@ func AddFlags(flags *pflag.FlagSet) *ContainerOptions {
// Health-checking
flags.StringVar(&copts.healthCmd, "health-cmd", "", "Command to run to check health")
- flags.DurationVar(&copts.healthInterval, "health-interval", 0, "Time between running the check")
+ flags.DurationVar(&copts.healthInterval, "health-interval", 0, "Time between running the check (ns|us|ms|s|m|h) (default 0s)")
flags.IntVar(&copts.healthRetries, "health-retries", 0, "Consecutive failures needed to report unhealthy")
- flags.DurationVar(&copts.healthTimeout, "health-timeout", 0, "Maximum time to allow one check to run")
+ flags.DurationVar(&copts.healthTimeout, "health-timeout", 0, "Maximum time to allow one check to run (ns|us|ms|s|m|h) (default 0s)")
flags.BoolVar(&copts.noHealthcheck, "no-healthcheck", false, "Disable any container-specified HEALTHCHECK")
// Resource management