Script for gathering Docker containers names and stats #!/bin/bash
delim='-------------------------------'
stats=0
#while [ 1 ]; do
declare -a name=( $(docker ps --format "table {{.ID}}\t{{.Names}}" | sed 1d |awk '{print docker stats $contName --no-stream | awk '{print $2,$8}'|sed 1d| sed 's/%//g'
echo "$contName" "$stats"
#echo "$delim"
done
#sleep 5
#done