Docker pull from artifactory fails with credentials issue

一世执手 提交于 2020-01-06 05:30:23

问题


I have a Jenkins job on a remote environment where I use docker to pull down an image (microsoft/aspnetcore-build/2.0.0) from a local Artifactory repo, but the docker pull fails with - 'unknown: Forbidden', yet other jobs sharing the same Artifactory credentials do not fail.
The docker pull seems to proceed only when attempted from my local or any other machine, and then the job is kicked off manually on Jenkins. There are multiple retries for each image layer and subsequently it fails with -

'unknown: Rejected artifact download request: User xyz is not permitted to deploy 'microsoft/aspnetcore-build/2.0.0'.


回答1:


try add docker login -u $DOCKER_USER -p $DOCKER_PW $DOCKER_URL to make sure you already loggin



来源:https://stackoverflow.com/questions/46150614/docker-pull-from-artifactory-fails-with-credentials-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!