4

自 11 月 2 日起,Dockerhub 对从其注册表中提取数据实施了限制。我的 Drone CI 发布(到私有注册表)失败,因为它基于必须从注册表中提取的 openjdk:14-jdk-alpine。

所以我在https://hub.docker.com/上创建了一个帐户并配置了 config.json 如下

我的 /root/.docker/config.json 看起来像这样

{
    "auths": {
            "https://index.docker.io/v1/": {
                    "auth": "my-api-key-is-here"
            }
    },
    "HttpHeaders": {
            "User-Agent": "Docker-Client/19.03.13 (linux)"
    }

}

所以我运行了以下容器:

drone/drone:latest
drone/drone-runner-docker:latest

其中drone-runner-docker有一个卷绑定到docker sock的主机(/var/run/docker.sock)

运行构建和发布时,我收到下面的 toomanyrequests 错误。

toomanyrequests: You have reached your pull rate limit. You may increase the limit by 
authenticating and upgrading: https://www.docker.com/increase-rate-limit
time="2020-11-20T22:50:14Z" level=fatal msg="exit status 1"

显然我仍然处于访客模式,我做错了什么?

latest: Pulling from plugins/docker
Digest: 
sha256:60f36379eb3f1b27a61f7c0a275dd260387a00af1144345976475b2a35e5ee4f
Status: Image is up to date for plugins/docker:latest
+ /usr/local/bin/dockerd --data-root /var/lib/docker -- 
host=unix:///var/run/docker.sock
Registry credentials or Docker config not provided. Guest mode enabled.
4

0 回答 0