Sometimes docker fails to start within a container with the following error 👇 > Failed to connect to Docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? As manually running `/usr/local/share/docker-init.sh` fixes this issue, add some retry mechanism into the docker-init script .