docker 在centos 7 上登录artifactory-jcr 成功,但仍然提示'unknown: Authentication is required',怎么办?

docker login Succeeded into artifactory-jcr on centos 7 ,but still get ' unknown: Authentication is required',what to do?

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

 [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 ~]# 

不要在 docker 拉取中指定 v2。

尝试:

docker拉124.70.180.84:8081/docker/jib-mvn

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

检查后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.

重新启动传递来修复它

一开始,我已经通过我的电子邮件发起了通行证。