浏览代码

Merge pull request #23239 from albers/completion-run-healthcheck

bash completion for `docker run` healthcheck options
Vincent Demeester 9 年之前
父节点
当前提交
5429f4ef61
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      contrib/completion/bash/docker

+ 5 - 0
contrib/completion/bash/docker

@@ -1726,9 +1726,14 @@ _docker_run() {
 	if [ "$command" = "run" ] ; then
 		options_with_args="$options_with_args
 			--detach-keys
+			--health-cmd
+			--health-interval
+			--health-retries
+			--health-timeout
 		"
 		boolean_options="$boolean_options
 			--detach -d
+			--no-healthcheck
 			--rm
 			--sig-proxy=false
 		"