Scott Baker | 8ed63bb | 2016-07-07 14:20:08 -0700 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
3 | DOCKER_VERSION=`docker version --format '{{.Server.Version}}'` | ||||
4 | |||||
5 | verlte() { | ||||
6 | [ "$1" = "`echo -e "$1\n$2" | sort -V | head -n1`" ] | ||||
7 | } | ||||
8 | |||||
9 | verlte $DOCKER_VERSION 1.10.0 && echo "Please upgrade to docker 1.10.2 or better" && exit -1 | ||||
10 | |||||
11 | exit 0 |