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