Skip to content

Commit

Permalink
docker stats witch container names
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamHyski authored Jan 29, 2019
1 parent 80c4997 commit aef8467
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mage2docker.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;
Expand Down

0 comments on commit aef8467

Please sign in to comment.