Merge pull request #60 from konstruktoid/version_fix

catch server versions
This commit is contained in:
Thomas Sjögren 2015-07-11 20:42:26 +02:00
commit ec3fdfce3a

View file

@ -39,7 +39,8 @@ fi
# 1.6
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"
do_version_check "$docker_current_version" "$docker_version"
if [ $? -eq 11 ]; then