mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 00:32:34 +01:00
Fix filtering out docker-bench-security container from results
Signed-off-by: Pete Sellars <psellars@gmail.com>
This commit is contained in:
parent
3e6636c044
commit
57ac3cee99
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ done
|
||||||
# Load all the tests from tests/ and run them
|
# Load all the tests from tests/ and run them
|
||||||
main () {
|
main () {
|
||||||
# List all running containers
|
# List all running containers
|
||||||
containers=$(docker ps -q)
|
containers=$(docker ps | sed '1d' | awk '{print $NF}')
|
||||||
# If there is a container with label docker_bench_security, memorize it:
|
# If there is a container with label docker_bench_security, memorize it:
|
||||||
benchcont="nil"
|
benchcont="nil"
|
||||||
for c in $containers; do
|
for c in $containers; do
|
||||||
|
|
Loading…
Reference in a new issue