hughesjr / rpms / docker

Forked from rpms/docker 4 years ago
Clone

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

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