Updated docker plugin to use Docker container names instead of hashes.

This commit is contained in:
Tomasz Tokarski 2014-01-08 23:33:54 +01:00
commit efc3085594

View file

@ -9,7 +9,7 @@
# Output a selectable list of all running docker containers
__docker_containers() {
declare -a cont_cmd
cont_cmd=($(docker ps | awk 'NR>1{print $1":[CON("$1")"$2"("$3")]"}'))
cont_cmd=($(docker ps -a | awk 'NR>1{split($NF,names,","); print names[1]":[CON("$1")"$2"("$3")("$NF")]"}'))
_describe 'containers' cont_cmd
}