私はHarbor
ローカルドッカーレジストリを持っていて、必要なイメージはすべて港に接続され、すべての画像が港から受け取られ、11月2日の後、Dockerは引っ張り数に限界を置き、それはディンドのように見えますサービスはDocker Hubから引き下げます。港から引っ張るためにドインンドサービスを使用することは可能ですか?
パイプライン出力:
Running with gitlab-runner 12.10.1 (ce065b93)
on docker_runner_7 WykGNjC6
Preparing the "docker" executor
30:20
Using Docker executor with image **harbor**.XXX.XXXX.net/library/docker_maven_jvm14 ...
Starting service docker:**dind** ...
**Pulling docker image docker:dind** ...
**ERROR**: Preparation failed: Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit (docker.go:198:2s)
Will be retried in 3s ...
Using Docker executor with image harbor.XXX.XXX.net/library/docker_maven_jvm14 ...
Starting service docker:dind ...
Pulling docker image docker:dind ...
ERROR: Preparation failed: Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit (docker.go:198:4s)
Will be retried in 3s ...
Using Docker executor with image harbor.XXX.XXX.net/library/docker_maven_jvm14 ...
Starting service docker:dind ...
Pulling docker image docker:dind ...
ERROR: Preparation failed: Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit (docker.go:198:3s)
Will be retried in 3s ...
ERROR: Job failed (system failure): Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit (docker.go:198:3s)
_
Gitlabのソリューションが見つかりませんが、Docker Hubレジストリを無視してローカルレジストリに移動するようにDockerに指示することができます。
追加 daemon.json
NS /etc/docker/daemon.json
、存在しない場合は、パスに簡単に追加できます。
デーモン
{
"registry-mirrors": ["https://harbor.XXX.com"]
}
_
Sudo systemctl dockerを再起動します