File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed
Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,9 @@ for img in $images; do
5959 warn " $check_4_6 "
6060 fi
6161 imgName=$( docker inspect --format=' {{.RepoTags}}' " $img " 2> /dev/null)
62- warn " * No Healthcheck found : $imgName "
62+ if ! [ " $imgName " = ' []' ]; then
63+ warn " * No Healthcheck found: $imgName "
64+ fi
6365 fi
6466done
6567if [ $fail -eq 0 ]; then
@@ -77,7 +79,9 @@ for img in $images; do
7779 info " $check_4_7 "
7880 fi
7981 imgName=$( docker inspect --format=' {{.RepoTags}}' " $img " 2> /dev/null)
80- info " * Update instruction found in history of $imgName "
82+ if ! [ " $imgName " = ' []' ]; then
83+ info " * Update instruction found: $imgName "
84+ fi
8185 fi
8286done
8387if [ $fail -eq 0 ]; then
@@ -95,7 +99,9 @@ for img in $images; do
9599 info " $check_4_9 "
96100 fi
97101 imgName=$( docker inspect --format=' {{.RepoTags}}' " $img " 2> /dev/null)
98- info " * Found ADD in docker history of $imgName "
102+ if ! [ " $imgName " = ' []' ]; then
103+ info " * ADD in image history: $imgName "
104+ fi
99105 fi
100106done
101107if [ $fail -eq 0 ]; then
Original file line number Diff line number Diff line change @@ -575,10 +575,10 @@ else
575575 if [ $? -ne 0 ]; then
576576 if [ $fail -eq 0 ]; then
577577 warn " $check_5_26 "
578- warn " * Health check not set for $c "
578+ warn " * Health check not set: $c "
579579 fail=1
580580 else
581- warn " * Health check not set for $c "
581+ warn " * Health check not set: $c "
582582 fi
583583 fi
584584 done
@@ -597,10 +597,10 @@ else
597597 # If it's the first container, fail the test
598598 if [ $fail -eq 0 ]; then
599599 warn " $check_5_28 "
600- warn " * pidslimit not set: $c "
600+ warn " * PID limit not set: $c "
601601 fail=1
602602 else
603- warn " * pidslimit not set: $c "
603+ warn " * PID limit not set: $c "
604604 fi
605605 fi
606606 done
You can’t perform that action at this time.
0 commit comments