mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 08:42:33 +01:00
catch server versions
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
4a289d9a15
commit
45671a70f3
1 changed files with 2 additions and 1 deletions
|
@ -39,7 +39,8 @@ fi
|
||||||
|
|
||||||
# 1.6
|
# 1.6
|
||||||
check_1_6="1.6 - Keep Docker up to date"
|
check_1_6="1.6 - Keep Docker up to date"
|
||||||
docker_version=$(docker --version | awk '{print $3}' | tr -d '[:alpha:]-,')
|
docker_version=$(docker version | grep -i -A1 '^server' | grep -i 'version:' \
|
||||||
|
| awk '{print $NF; exit}' | tr -d '[:alpha:]-,')
|
||||||
docker_current_version="1.7.0"
|
docker_current_version="1.7.0"
|
||||||
do_version_check "$docker_current_version" "$docker_version"
|
do_version_check "$docker_current_version" "$docker_version"
|
||||||
if [ $? -eq 11 ]; then
|
if [ $? -eq 11 ]; then
|
||||||
|
|
Loading…
Reference in a new issue