Skip to content

Commit

Permalink
Add zsh completion for 'docker run' healthcheck options
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Durrheimer <[email protected]>
  • Loading branch information
sdurrheimer committed Jun 12, 2016
1 parent 434a46e commit 7342608
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contrib/completion/zsh/_docker
Original file line number Diff line number Diff line change
Expand Up @@ -1241,6 +1241,11 @@ __docker_subcommand() {
$opts_create_run_update \
$opts_attach_exec_run_start \
"($help -d --detach)"{-d,--detach}"[Detached mode: leave the container running in the background]" \
"($help)--health-cmd=[Command to run to check health]:command: " \
"($help)--health-interval=[Time between running the check]:time: " \
"($help)--health-retries=[Consecutive failures needed to report unhealthy]:retries:(1 2 3 4 5)" \
"($help)--health-timeout=[Maximum time to allow one check to run]:time: " \
"($help)--no-healthcheck[Disable any container-specified HEALTHCHECK]" \
"($help)--rm[Remove intermediate containers when it exits]" \
"($help)--sig-proxy[Proxy all received signals to the process (non-TTY mode only)]" \
"($help)--stop-signal=[Signal to kill a container]:signal:_signals" \
Expand Down

0 comments on commit 7342608

Please sign in to comment.