我Docker version 20.10.8, build 3967b7d
在CentOS-7.9
主机Sonatype Nexus Repository Manager version - OSS 3.30.1-01
上使用并用作私有 docker 注册表。当我尝试使用它提取图像时,docker-compose
它总是失败并出现以下错误。
$ docker-compose up -d
Pulling prometheus (internal-registry.com:8335/prometheus:latest)...
ERROR: manifest for internal-registry.com:8335/prometheus:latest not found: manifest unknown: manifest unknown
错误Sonatype Nexus server log
如下。
2021-10-11 10:35:41,307+0530 WARN [qtp657241891-125] admin org.sonatype.nexus.repository.docker.internal.V2Handlers - Error: HEAD /v2/library/prometheus/manifests/latest: 401 - org.sonatype.nexus.repository.docker.internal.V2Exception: authentication required
2021-10-11 10:35:42,106+0530 WARN [qtp657241891-560] admin org.sonatype.nexus.repository.docker.internal.V2Handlers - Error: GET /v2/library/prometheus/manifests/latest: 401 - org.sonatype.nexus.repository.docker.internal.V2Exception: authentication required.
Docker 主机docker login to our private registry
成功。
1) Repo - Allow clients to use the V1 API to interact with this repository (Tick mark enabled).
2) DockerHub(Proxy) - Allow clients to use the V1 API to interact with this repository (Tick mark enabled).
3) Group - Allow clients to use the V1 API to interact with this repository (Tick mark enabled).
4) Nexus UI > Security > Anonymous Access > Allow anonymous users to access the server - (Tick mark enabled).
Username: anonymous
Realm: Local Autherizing Realm
5) Nexus UI > Security > Role > Create role > Create Nexus role > Created new role
Privileges: nx-repository-view-*-*-*-broswe
nx-repository-view-*-*-*-read
Roles: Contained - nx-anonymous
6) Nexus UI > Security > Users > anonymous(Active)
Roles: Granted: read_and-browse
7) Nexus UI > Security > Realms - Docker Bearer Token Realm (Is in Active List)
not found: manifest unknown: manifest unknown
拉取 docker 镜像时仍然出错。我该如何解决这个问题?任何指针都会有所帮助。谢谢!