mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
#182 messages and syntax
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
200152dff1
commit
6a2176b34e
3 changed files with 10 additions and 10 deletions
|
@ -46,12 +46,12 @@ docker_current_date="2017-01-18"
|
|||
do_version_check "$docker_current_version" "$docker_version"
|
||||
if [ $? -eq 11 ]; then
|
||||
warn "$check_1_5"
|
||||
warn " * Using $docker_version, when $docker_current_version is current as of $docker_current_date"
|
||||
info " * Your operating system vendor may provide support and security maintenance for docker"
|
||||
warn " * Using $docker_version, when $docker_current_version is current as of $docker_current_date"
|
||||
info " * Your operating system vendor may provide support and security maintenance for docker"
|
||||
else
|
||||
pass "$check_1_5"
|
||||
info " * Using $docker_version which is current as of $docker_current_date"
|
||||
info " * Check with your operating system vendor for support and security maintenance for docker"
|
||||
info " * Using $docker_version which is current as of $docker_current_date"
|
||||
info " * Check with your operating system vendor for support and security maintenance for docker"
|
||||
fi
|
||||
|
||||
# 1.6
|
||||
|
|
|
@ -59,7 +59,7 @@ for img in $images; do
|
|||
warn "$check_4_6"
|
||||
fi
|
||||
imgName=`docker inspect --format='{{.RepoTags}}' $img 2>/dev/null`
|
||||
warn " No Healthcheck found : $imgName"
|
||||
warn " * No Healthcheck found : $imgName"
|
||||
fi
|
||||
done
|
||||
if [ $fail -eq 0 ]; then
|
||||
|
@ -77,7 +77,7 @@ for img in $images; do
|
|||
info "$check_4_7"
|
||||
fi
|
||||
imgName=`docker inspect --format='{{.RepoTags}}' $img 2>/dev/null`
|
||||
info " update instruction found in history of $imgName"
|
||||
info " * Update instruction found in history of $imgName"
|
||||
fi
|
||||
done
|
||||
if [ $fail -eq 0 ]; then
|
||||
|
@ -95,7 +95,7 @@ for img in $images; do
|
|||
info "$check_4_9"
|
||||
fi
|
||||
imgName=`docker inspect --format='{{.RepoTags}}' $img 2>/dev/null`
|
||||
info " found ADD in docker history of $imgName"
|
||||
info " * Found ADD in docker history of $imgName"
|
||||
fi
|
||||
done
|
||||
if [ $fail -eq 0 ]; then
|
||||
|
|
|
@ -625,7 +625,7 @@ else
|
|||
fail=1
|
||||
fi
|
||||
for c in $docker0Containers; do
|
||||
warn " * container in docker0 network: $c"
|
||||
warn " * Container in docker0 network: $c"
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
@ -669,10 +669,10 @@ else
|
|||
# If it's the first container, fail the test
|
||||
if [ $fail -eq 0 ]; then
|
||||
warn "$check_5_31"
|
||||
warn " * Docker sock shared: $c"
|
||||
warn " * Docker socket shared: $c"
|
||||
fail=1
|
||||
else
|
||||
warn " * Docekr sock shared: $c"
|
||||
warn " * Docker socket shared: $c"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue