[英]GitLab Runner & Docker: ERROR: Preparation failed: Error: No such image
When attempting to pull public images (eg python:3.6
, node:latest
) from Docker, our GitLab runner failed with the following error message:当试图从 Docker 拉取公共图像(例如
python:3.6
, node:latest
)时,我们的 GitLab 运行器失败并显示以下错误消息:
Running with gitlab-runner 12.2.0 (a987417a)
on GitLab Runner XYZ
Using Docker executor with image python:3.6 ... 00:17
Starting service python:3.6 ...
Pulling docker image python:3.6 ...
ERROR: Preparation failed: Error: No such image: python:3.6 (executor_docker.go:199:0s)
The cause was we exceeded Dockers pull rate limit :原因是我们超出了Dockers 的拉取率限制:
See https://docs.docker.com/docker-hub/download-rate-limit/#how-can-i-check-my-current-rate请参阅https://docs.docker.com/docker-hub/download-rate-limit/#how-can-i-check-my-current-rate
Authenticate with Docker Hub to increase to 200 pulls per 6 hours:使用 Docker 集线器进行身份验证以增加到每 6 小时 200 次拉动:
docker login
Alternatively you can cache Docker images to reduce the number of calls to DockerHub from your CI/CD infrastructure.或者,您可以缓存 Docker 映像,以减少从 CI/CD 基础架构调用 DockerHub 的次数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.