简体   繁体   English

GitLab Runner & Docker:错误:准备失败:错误:没有这样的图像

[英]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 的拉取率限制

  • Free plan – anonymous users: 100 pulls per 6 hours免费计划 – 匿名用户:每 6 小时 100 次拉取
  • Free plan – authenticated users: 200 pulls per 6免费计划——经过身份验证的用户:每 6 次拉取 200 次

How can I check my current rate?如何查看我当前的费率?

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

How to increase the rate limit?如何提高速率限制?

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.

相关问题 Gitlab Runner:准备失败:无法连接到 unix:///var/run/docker.sock 上的 Docker 守护进程 - Gitlab Runner : Preparation failed: Cannot connect to the Docker daemon at unix:///var/run/docker.sock GitLab 转轮 - Docker 图像 - GitLab Runner - Docker Image Gitlab Runner 与 Docker 和 shell 错误 - 权限被拒绝 - Gitlab Runner with Docker and shell error — Permission denied GitLab CI 错误:准备失败:发布 https...docker%3Adind:net/http:等待响应头超时 - GitLab CI ERROR: Preparation failed: Post https...docker%3Adind: net/http: timeout awaiting response headers gitlab-runner docker-machine错误 - gitlab-runner docker-machine error Gitlab 运行程序失败错误:无法连接到本地运行程序的 Docker 守护程序 - Gitlab runner failing ERROR: Cannot connect to the Docker daemon at local runner 意外的环境准备错误:创建运行器二进制文件失败:连接期间出错: - Unexpected environment preparation error: failed to create runner binary: error during connect: docker 中 windows 上的 gitlab-runner 无法运行并出现错误的 OSType 错误 - gitlab-runner on windows in docker fails to run with wrong OSType error centos docker 图像不适用于 gitlab docker runner - centos docker image not working on gitlab docker runner 在 gitlab 运行器中的作业之间传递 docker 图像 - Pass docker image between jobs in gitlab runner
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM