1

我已经在 ecs 上的 docker 中启动了 artifactory-jcr,然后尝试从中提取图像。首先,我在笔记本电脑上工作,win10,一切正常,然后我转到 ecs 登录 artifactory-jcr,它成功了。但是当我尝试拉图像,它抱怨“未知:需要身份验证”。

 [root@iz2zeahcvguz4d9jetqwlz ~]# docker logout 124.70.180.84:8081
Removing login credentials for 124.70.180.84:8081
WARNING: could not erase credentials: error erasing credentials - err: exit status 1, out: `exit status 1: Error: docker-credential-helpers/MTI0LjcwL5MC44NDo4MDgx is not in the password store.`
[root@iz2zeahcvguz4d9jetqwlz ~]# docker login 124.70.180.84:8081
Username: maple
Password: 
Login Succeeded
[root@iz2zeahcvguz4d9jetqwlz ~]# docker pull 124.70.180.84:8081/v2/docker/jib-mvn
Using default tag: latest
Trying to pull repository 124.70.180.84:8081/v2/docker/jib-mvn ... 
Get http://124.70.180.84:8081/v2/v2/docker/jib-mvn/manifests/latest: unknown: Authentication is required
[root@iz2zeahcvguz4d9jetqwlz ~]# pass
Password Store
└── docker-credential-helpers
    └── MTI0LjcwLjE5MC44NDoMDgx
        └── maple
[root@iz2zeahcvguz4d9jetqwlz ~]# 
4

2 回答 2

0

不要在 docker pull 中指定 v2。

尝试:

码头工人拉 124.70.180.84:8081/码头工人/jib-mvn

假设“docker”是存储库的名称,“jib-mvn”是图像的名称。

于 2020-10-30T15:40:53.410 回答
0

检查后https://www.passwordstore.org/

pass init "ZX2C4 Password Storage Key"

mkdir: created directory ‘/home/zx2c4/.password-store’
Password store initialized for ZX2C4 Password Storage Key.
Here, ZX2C4 Password Storage Key is the ID of my GPG key. You can use your standard GPG key or use an alternative one especially for the password store as shown above.

通过使用 gpg-id 重新启动传递来修复它。

一开始,我已经用我的电子邮件发起了传递。

于 2020-11-03T13:44:00.843 回答