Skip to content
Snippets Groups Projects

A better way to waiting to Docker daemon start

Merged BhEaN requested to merge deploy-to-kubernetes into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -46,7 +46,7 @@ build-container:
- privileged-runner
script:
- nohup sh -c /usr/local/bin/dockerd-entrypoint.sh &
- echo "Waiting for Docker daemon"; sleep 5
- for i in `seq 1 10`; do docker info > /dev/null 2>&1; if [ ! $? -eq 0 ]; then echo "Waiting for Docker daemon start..."; sleep 1; fi; done
- docker login --username gitlab-ci-token --password $CI_JOB_TOKEN $CI_REGISTRY_IMAGE
- docker pull $CI_REGISTRY_IMAGE:latest || true
- docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA --tag $CI_REGISTRY_IMAGE:latest --file conf/docker/prod/Dockerfile .
Loading