From 5d2f98a63af60b209ec70cd3122f2417e953a375 Mon Sep 17 00:00:00 2001 From: UserTaken Date: Thu, 11 Jun 2015 00:21:45 -0700 Subject: [PATCH] More run and create options --- plugins/docker/_docker | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/plugins/docker/_docker b/plugins/docker/_docker index 25f55beca..bd494ecaa 100644 --- a/plugins/docker/_docker +++ b/plugins/docker/_docker @@ -52,10 +52,11 @@ __build() { __commit() { _arguments \ - '(-a,--author=)'{-a,--author=}'[Author (e.g. "John Hannibal Smith ")]' \ - '(-c,--change=)'{-c,--change=}'[Apply Dockerfile instruction to the created image]' \ + '(-a,--author=)'{-a,--author=}'[Author (eg. "John Hannibal Smith "]' \ '(-m,--message=)'{-m,--message=}'[Commit message]' \ + '--run=[Config automatically applied when the image is run.]' '(-p,--pause=)'{-p,--pause=}'[Pause container during commit]' \ + __docker_containers } __cp() { @@ -69,8 +70,7 @@ __create() { '--add-host=[Add a custom host-to-IP mapping]' \ '--cap-add=[Add Linux capabilities]' \ '--cap-drop=[Drop Linux capabilities]' \ - '--cpuset-cpus=[CPUs in which to allow execution (0-3, 0,1)]' \ - '(-c,--cpu-shares=)'{-c,--cpu-shares=}'[CPU shares (relative weight)]' \ + '(-c,--cpu-shares=)'{-c,--cpu-shares=}':[CPU shares (relative weight)]' \ '--cidfile=[Write the container ID to the file]' \ '--device=[Add a host device to the container]' \ '--dns=[Set custom dns servers]' \ @@ -227,8 +227,7 @@ __run() { '--add-host=[Add a custom host-to-IP mapping]' \ '--cap-add=[Add Linux capabilities]' \ '--cap-drop=[Drop Linux capabilities]' \ - '--cpuset-cpus=[CPUs in which to allow execution (0-3, 0,1)]' \ - '(-c,--cpu-shares=)'{-c,--cpu-shares=}'[CPU shares (relative weight)]' \ + '(-c,--cpu-shares=)'{-c,--cpu-shares=}':[CPU shares (relative weight)]' \ '--cidfile=[Write the container ID to the file]' \ '(-d,--detach=)'{-d,--detach=}'[Run container in the background, print new container id]' \ '--device=[Add a host device to the container]' \