Automates deployment of containerized applications
CentOS Sources
2017-11-30 78b10da3fc88c5ddf46b68d3dd3ac9b62fdf2cb6
commit | author | age
d03ac3 1 #!/bin/sh
CS 2 . /etc/sysconfig/docker
3 [ -e "${DOCKERBINARY}" ] || DOCKERBINARY=/usr/bin/docker-current
4 if [ ! -f /usr/bin/docker-current ]; then
5     if [ ! -f /usr/bin/docker-latest ]; then
6         echo "You don't have either docker-client or \
7 docker-client-latest installed. Please install either one and retry."
8         exit
9     else
10         DOCKERBINARY=/usr/bin/docker-latest
11     fi
12 fi
13 if [[ ${DOCKERBINARY} != "/usr/bin/docker-current" && ${DOCKERBINARY} != /usr/bin/docker-latest ]]; then
14     echo "DOCKERBINARY has been set to an invalid value:" $DOCKERBINARY
15     echo ""
16     echo "Please set DOCKERBINARY to /usr/bin/docker-current or /usr/bin/docker-latest
17 by editing /etc/sysconfig/docker"
18 else
19     exec ${DOCKERBINARY} "$@"
20 fi