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 "${DOCKER_CONTAINERD_SHIM_BINARY}" ] || DOCKER_CONTAINERD_SHIM_BINARY=/usr/bin/docker-containerd-shim-current
4 if [ ! -f /usr/bin/docker-containerd-shim-current ]; then
5     DOCKER_CONTAINERD_SHIM_BINARY=/usr/bin/docker-containerd-shim-latest
6 fi
7 if [[ ${DOCKER_CONTAINERD_SHIM_BINARY} != "/usr/bin/docker-containerd-shim-current" && ${DOCKER_CONTAINERD_SHIM_BINARY} != /usr/bin/docker-containerd-shim-latest ]]; then
8     echo "DOCKER_CONTAINERD_SHIM_BINARY has been set to an invalid value:" $DOCKER_CONTAINERD_SHIM_BINARY
9     echo ""
10     echo "Please set DOCKER_CONTAINERD_SHIM_BINARY to /usr/bin/docker-containerd-shim-current or /usr/bin/docker-containerd-shim-latest
11 by editing /etc/sysconfig/docker"
12 else
13     exec ${DOCKER_CONTAINERD_SHIM_BINARY} "$@"
14 fi