mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
docker date versioning
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
dac6a62ba1
commit
00c2d6e796
1 changed files with 2 additions and 2 deletions
|
@ -21,11 +21,11 @@ check_1_3="1.3 - Ensure Docker is up to date"
|
|||
docker_version=$(docker version | grep -i -A1 '^server' | grep -i 'version:' \
|
||||
| awk '{print $NF; exit}' | tr -d '[:alpha:]-,')
|
||||
docker_current_version="$(date +%y.%m.0)"
|
||||
docker_current_date="$(date +%Y-%m-01)"
|
||||
docker_current_date="$(date --date="$(date +%Y-%m-01) -1 month" +%Y-%m-01)"
|
||||
do_version_check "$docker_current_version" "$docker_version"
|
||||
if [ $? -eq 11 ]; then
|
||||
info "$check_1_3"
|
||||
info " * Using $docker_version, when $docker_current_version is current as of $docker_current_date"
|
||||
info " * Using $docker_version, verify is it up to date as deemed necessary"
|
||||
info " * Your operating system vendor may provide support and security maintenance for Docker"
|
||||
else
|
||||
pass "$check_1_3"
|
||||
|
|
Loading…
Reference in a new issue