Made DOCKER_SOCK configurable,

default it to /var/run/docker.sock
This commit is contained in:
Luckydonald
2017-11-23 18:47:15 +01:00
committed by GitHub
parent 4a30bca366
commit 7b218d4ebc
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env sh
set -e
DOCKER_SOCK=/tmp/docker.sock
DOCKER_SOCK=${DOCKER_SOCK:-/var/run/docker.sock}
TMP_DIR=/tmp/restart
if [ "$1" = 'autoheal' ] && [ -e ${DOCKER_SOCK} ]; then