Files
trailofbits-buttercup/common/container-entrypoint.sh
Riccardo Schirone 6127ca8786 Wait for DinD to be ready (#490)
* deployment/charts: start dind first

* Wait for DinD to be up and running
2025-04-30 09:54:26 +02:00

13 lines
279 B
Bash
Executable File

#!/bin/bash
# Wait for the Docker host to be ready to accept connections
if [ -n "$DOCKER_HOST" ]; then
echo "Waiting for Docker daemon to be ready..."
while ! docker info > /dev/null 2>&1; do
sleep 1
done
fi
# Run the command passed as arguments
exec "$@"