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