mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 00:32:34 +01:00
Merge pull request #193 from konstruktoid/pr182_messages
#182 messages and syntax
This commit is contained in:
commit
eb2e81ae17
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"
|
do_version_check "$docker_current_version" "$docker_version"
|
||||||
if [ $? -eq 11 ]; then
|
if [ $? -eq 11 ]; then
|
||||||
warn "$check_1_5"
|
warn "$check_1_5"
|
||||||
warn " * Using $docker_version, when $docker_current_version is current as of $docker_current_date"
|
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"
|
info " * Your operating system vendor may provide support and security maintenance for docker"
|
||||||
else
|
else
|
||||||
pass "$check_1_5"
|
pass "$check_1_5"
|
||||||
info " * Using $docker_version which is current as of $docker_current_date"
|
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 " * Check with your operating system vendor for support and security maintenance for docker"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 1.6
|
# 1.6
|
||||||
|
|
|
@ -59,7 +59,7 @@ for img in $images; do
|
||||||
warn "$check_4_6"
|
warn "$check_4_6"
|
||||||
fi
|
fi
|
||||||
imgName=`docker inspect --format='{{.RepoTags}}' $img 2>/dev/null`
|
imgName=`docker inspect --format='{{.RepoTags}}' $img 2>/dev/null`
|
||||||
warn " No Healthcheck found : $imgName"
|
warn " * No Healthcheck found : $imgName"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [ $fail -eq 0 ]; then
|
if [ $fail -eq 0 ]; then
|
||||||
|
@ -77,7 +77,7 @@ for img in $images; do
|
||||||
info "$check_4_7"
|
info "$check_4_7"
|
||||||
fi
|
fi
|
||||||
imgName=`docker inspect --format='{{.RepoTags}}' $img 2>/dev/null`
|
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
|
fi
|
||||||
done
|
done
|
||||||
if [ $fail -eq 0 ]; then
|
if [ $fail -eq 0 ]; then
|
||||||
|
@ -95,7 +95,7 @@ for img in $images; do
|
||||||
info "$check_4_9"
|
info "$check_4_9"
|
||||||
fi
|
fi
|
||||||
imgName=`docker inspect --format='{{.RepoTags}}' $img 2>/dev/null`
|
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
|
fi
|
||||||
done
|
done
|
||||||
if [ $fail -eq 0 ]; then
|
if [ $fail -eq 0 ]; then
|
||||||
|
|
|
@ -625,7 +625,7 @@ else
|
||||||
fail=1
|
fail=1
|
||||||
fi
|
fi
|
||||||
for c in $docker0Containers; do
|
for c in $docker0Containers; do
|
||||||
warn " * container in docker0 network: $c"
|
warn " * Container in docker0 network: $c"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -669,10 +669,10 @@ else
|
||||||
# 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_31"
|
warn "$check_5_31"
|
||||||
warn " * Docker sock shared: $c"
|
warn " * Docker socket shared: $c"
|
||||||
fail=1
|
fail=1
|
||||||
else
|
else
|
||||||
warn " * Docekr sock shared: $c"
|
warn " * Docker socket shared: $c"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue