Skip to content

Commit

Permalink
TW-79512 Docker_in_docker does not restart reliable
Browse files Browse the repository at this point in the history
  • Loading branch information
kir committed Feb 14, 2023
1 parent 75c8834 commit 993cb5c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions context/run-docker.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 993cb5c

Please sign in to comment.