Gitiles
Code Review
Sign In
gerrit.opencord.org
/
service-profile
/
79d9329fb5c7c869c716ab0a0b8b51a537d555cc
/
.
/
common
/
check_docker_version.sh
blob: 654ff5f290b5a66457e5e11e70d46985048b4495 [
file
] [
log
] [
blame
]
#!/bin/bash
DOCKER_VERSION
=
`docker version --format '{{.Server.Version}}'`
verlte
()
{
[
"$1"
=
"`echo -e "
$1\n$2
" | sort -V | head -n1`"
]
}
verlte $DOCKER_VERSION
1.10
.
0
&&
echo
"Please upgrade to docker 1.10.2 or better"
&&
exit
-
1
exit
0