I have launched artifactory-jcr in docker on ecs ,then try to pull images from it.at first ,I work on my laptop ,win10,everything is ok,then I move to ecs to login artifactory-jcr ,it Succeeded.but when I try to pull images ,it complains "unknown: Authentication is required".
[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 ~]#
2
Answers
After checking https://www.passwordstore.org/
fix it by reinitiating the pass with gpg-id.
at the very first ,I have initiated pass with my email.
Do not specify the v2 in the docker pull.
Try:
docker pull 124.70.180.84:8081/docker/jib-mvn
Assuming "docker" is the name of the repo and "jib-mvn" is the name of the image.