Skip to content

Commit

Permalink
Test mount to docker.sock
Browse files Browse the repository at this point in the history
  • Loading branch information
brablc committed May 31, 2024
1 parent 1987cbb commit 815201a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker-cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ source ./logger.sh

LOOP_SLEEP=${LOOP_SLEEP:-10s}

if [[ ! -S /var/run/docker.sock ]]; then
log_error "Mount to /var/run/docker.sock missing?"
exit 1
fi

test -z "$ALERT_SCRIPT" && log_warn "Env ALERT_SCRIPT not defined - alerting disabled"
test -z "$SWARM_NAME" && log_warn "Env SWARM_NAME not defined using default"

Expand Down

0 comments on commit 815201a

Please sign in to comment.