From aef84676448d133f34d61928cb501ec695c382cb Mon Sep 17 00:00:00 2001 From: Adam Hyski Date: Tue, 29 Jan 2019 13:44:07 +0100 Subject: [PATCH] docker stats witch container names --- mage2docker.plugin.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mage2docker.plugin.zsh b/mage2docker.plugin.zsh index 68eb981..b97d62d 100644 --- a/mage2docker.plugin.zsh +++ b/mage2docker.plugin.zsh @@ -119,6 +119,9 @@ mage2docker () { vst) docker exec -it -e LINES=$(tput lines) -e COLUMNS=$(tput cols) -u root $1 varnishstat ;; + stats) + docker stats $(docker inspect -f '{{.Name}}' $(docker ps -q) | cut -c 2-) + ;; mage-log) docker exec -it -u www-data $1 tail -f var/log/$3 ;;