Skip to content

Commit 5ba8fa4

Browse files
fix some case where sigterm received before dockerd starts (#34)
1 parent 22093b0 commit 5ba8fa4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

run.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,5 +226,6 @@ if [[ -z "${DISABLE_CLEANER_AGENT}" && -z "${SIGTERM}" ]]; then
226226
fi
227227

228228
DOCKERD_PID=$(cat /var/run/docker.pid)
229-
echo "DOCKERD_PID = ${DOCKERD_PID} "
229+
echo "DOCKERD_PID = ${DOCKERD_PID}"
230+
[[ -n "${SIGTERM}" ]] && kill $DOCKERD_PID
230231
wait ${DOCKERD_PID}

service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 1.25.5
1+
version: 1.25.6

0 commit comments

Comments
 (0)