Blame SOURCES/docker-containerd-common.sh

d03ac3
#!/bin/sh
d03ac3
. /etc/sysconfig/docker
d03ac3
[ -e "${DOCKER_CONTAINERD_BINARY}" ] || DOCKER_CONTAINERD_BINARY=/usr/bin/docker-containerd-current
d03ac3
if [ ! -f /usr/bin/docker-containerd-current ]; then
d03ac3
    DOCKER_CONTAINERD_BINARY=/usr/bin/docker-containerd-latest
d03ac3
fi
d03ac3
if [[ ${DOCKER_CONTAINERD_BINARY} != "/usr/bin/docker-containerd-current" && ${DOCKER_CONTAINERD_BINARY} != /usr/bin/docker-containerd-latest ]]; then
d03ac3
    echo "DOCKER_CONTAINERD_BINARY has been set to an invalid value:" $DOCKER_CONTAINERD_BINARY
d03ac3
    echo ""
d03ac3
    echo "Please set DOCKER_CONTAINERD_BINARY to /usr/bin/docker-containerd-current or /usr/bin/docker-containerd-latest
d03ac3
by editing /etc/sysconfig/docker"
d03ac3
else
d03ac3
    exec ${DOCKER_CONTAINERD_BINARY} "$@"
d03ac3
fi