mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 00:32:34 +01:00
commit
1c217b85be
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ else
|
||||||
for c in $containers; do
|
for c in $containers; do
|
||||||
caps=$(docker inspect --format 'CapAdd={{ .HostConfig.CapAdd}}' "$c")
|
caps=$(docker inspect --format 'CapAdd={{ .HostConfig.CapAdd}}' "$c")
|
||||||
|
|
||||||
if [ "$caps" != "CapAdd=" -a "$caps" != "CapAdd=[]" -a "$caps" != "CapAdd=<no value>" ]; then
|
if [ "$caps" != 'CapAdd=' -a "$caps" != 'CapAdd=[]' -a "$caps" != 'CapAdd=<no value>' -a "$caps" != 'CapAdd=<nil>' ]; then
|
||||||
# If it's the first container, fail the test
|
# If it's the first container, fail the test
|
||||||
if [ $fail -eq 0 ]; then
|
if [ $fail -eq 0 ]; then
|
||||||
warn "$check_5_4"
|
warn "$check_5_4"
|
||||||
|
|
Loading…
Reference in a new issue