From 993cb5c2e60fb4734bc3b9bc7f12a4be60d8716c Mon Sep 17 00:00:00 2001 From: "Kirill (KIR) Maximov" Date: Tue, 14 Feb 2023 16:08:29 +0100 Subject: [PATCH] TW-79512 Docker_in_docker does not restart reliable --- context/run-docker.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/context/run-docker.sh b/context/run-docker.sh index 9b6b7015c..d056de826 100644 --- a/context/run-docker.sh +++ b/context/run-docker.sh @@ -1,7 +1,11 @@ #!/bin/bash if [ "$DOCKER_IN_DOCKER" = "start" ] ; then + + # Do cover the case when the container is restarted: sudo rm /var/run/docker.pid 2>/dev/null + sudo rm -rf /var/run/docker/containerd 2>/dev/null + sudo service docker start echo "Docker daemon started" service docker status