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 "${DOCKERDBINARY}" ] || DOCKERDBINARY=/usr/bin/dockerd-current
4 if [ ! -f /usr/bin/dockerd-current ]; then
5     if [ ! -f /usr/bin/dockerd-latest ]; then
6         echo "You don't have either docker or \
7 docker-latest installed. Please install either one and retry."
8         exit
9     else
10         DOCKERDBINARY=/usr/bin/dockerd-latest
11     fi
12 fi
13 if [[ ${DOCKERDBINARY} != "/usr/bin/dockerd-current" && ${DOCKERDBINARY} != "/usr/bin/dockerd-latest" ]]; then
14     echo "DOCKERDBINARY has been set to an invalid value:" $DOCKERDBINARY
15     echo ""
16     echo "Please set DOCKERDBINARY to /usr/bin/dockerd-current or /usr/bin/dockerd-latest
17 by editing /etc/sysconfig/docker"
18 else
19     exec ${DOCKERDBINARY} "$@"
20 fi