Explorar o código

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

Add zsh completion for 'docker {run,create} --cpus'
Brian Goff %!s(int64=8) %!d(string=hai) anos
pai
achega
a851cad25c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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)*--cap-drop=[Drop Linux capabilities]:capability: "
         "($help)--cgroup-parent=[Parent cgroup for the container]:cgroup: "
         "($help)--cgroup-parent=[Parent cgroup for the container]:cgroup: "
         "($help)--cidfile=[Write the container ID to the file]:CID file:_files"
         "($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=[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-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: "
         "($help)*--device-read-iops=[Limit the read rate (IO per second) from a device]:device:IO rate: "