From b3c411de0a7362fe072139bb108280a669c35022 Mon Sep 17 00:00:00 2001 From: Anidear Date: Fri, 11 Mar 2016 12:47:00 +0700 Subject: [PATCH] add rename command in docker plugin --- plugins/docker/_docker | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/docker/_docker b/plugins/docker/_docker index a82a31ad3..c63129ac4 100644 --- a/plugins/docker/_docker +++ b/plugins/docker/_docker @@ -200,6 +200,10 @@ __push() { # no arguments } +__rename() { + __docker_all_containers +} + __restart() { _arguments \ '(-t,--time=)'{-t,--time=}'[Number of seconds to try to stop for before killing the container. Once killed it will then be restarted. Default=10]' @@ -341,6 +345,7 @@ _1st_arguments=( "ps":"List containers" "pull":"Pull an image or a repository from the docker registry server" "push":"Push an image or a repository to the docker registry server" + "rename":"Rename a container" "restart":"Restart a running container" "rm":"Remove one or more containers" "rmi":"Remove one or more images" @@ -408,6 +413,8 @@ case "$words[1]" in __pull ;; push) __push ;; + rename) + __rename ;; restart) __restart ;; rm)