gitlab runner 使用 dind 作为 service 时的健康检查出错

解决不必要的 30s 超时等待时间

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM docker:20-dind as upstream

FROM scratch

COPY --from=upstream / /

VOLUME /var/lib/docker

EXPOSE 2376

ENV DOCKER_TLS_CERTDIR=/certs

ENTRYPOINT ["dockerd-entrypoint.sh"]

CMD []

Ref

  • https://gitlab.com/gitlab-org/gitlab-runner/-/issues/29130#note_1028331564
  • https://github.com/docker-library/docker/blob/0d1c2100d12da2e7e458cdff18d741f625ce27d6/20.10/dind/Dockerfile