瀏覽代碼

Merge pull request #28254 from sdurrheimer/zsh-completion-container-create-run-cpus

Add zsh completion for 'docker {run,create} --cpus'
Brian Goff 8 年之前
父節點
當前提交
a851cad25c
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      contrib/completion/zsh/_docker

+ 1 - 0
contrib/completion/zsh/_docker

@@ -524,6 +524,7 @@ __docker_container_subcommand() {
         "($help)*--cap-drop=[Drop Linux capabilities]:capability: "
         "($help)--cgroup-parent=[Parent cgroup for the container]:cgroup: "
         "($help)--cidfile=[Write the container ID to the file]:CID file:_files"
+        "($help)--cpus=[Number of CPUs (default 0.000)]:cpus: "
         "($help)*--device=[Add a host device to the container]:device:_files"
         "($help)*--device-read-bps=[Limit the read rate (bytes per second) from a device]:device:IO rate: "
         "($help)*--device-read-iops=[Limit the read rate (IO per second) from a device]:device:IO rate: "