Blame SOURCES/docker-containerd-shim-common.sh

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