Merge pull request #61 from amegianeg/get_container_names

LGTM.
Get all running containers by name instead of by shor-uuid.
This commit is contained in:
Thomas Sjögren 2015-07-25 14:04:48 +02:00
commit 887f5a4e34

View file

@ -81,8 +81,8 @@ main () {
labels=$(docker inspect --format '{{ .Config.Labels }}' "$c")
contains "$labels" "docker-bench-security" && benchcont="$c"
done
# List all running containers except docker-bench
containers=$(docker ps -q | grep -v "$benchcont")
# List all running containers except docker-bench (use names to improve readability in logs)
containers=$(docker ps | sed '1d' | awk '{print $NF}' | grep -v "$benchcont")
for test in tests/*.sh
do