1
1
Fork 0

count names instead of numbers in watch_containers.sh

This commit is contained in:
david 2022-04-25 22:34:16 +02:00
parent 8da7ac62ed
commit ec913db275
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ function usage {
}
function get_container_count {
local CNT=$(docker ps -q | wc -l)
local CNT=$(docker ps --format {{.Names}} | wc -l)
if is_int "$CNT"; then
echo $CNT
fi