我已经使用命令docker build -t my-app-1.0-snapshot .
制作了图像。当我尝试将其从Windows Docker Hub
推送到cmd
时,出现错误
docker push manuchadha25/my-app-1.0-snapshot
The push refers to repository [docker.io/manuchadha25/codingjediweb-1.0-snapshot]
An image does not exist locally with the tag: manuchadha25/my-app-1.0-snapshot
当我尝试仅使用图像名称而不使用用户名时,会出现access denied
错误
The push refers to repository [docker.io/library/codingjediweb-1.0-snapshot]
5bd738db4dd5: Preparing a57994b863ef: Preparing 85802b819ba0: Preparing 3cb3e7a9fe58: Preparing 04dc636f40fe: Preparing 691339400516: Waiting 2ee490fbc316: Waiting b18043518924: Waiting 9a11244a7e74: Waiting 5f3a5adb8e97: Waiting 73bfa217d66f: Waiting 91ecdd7165d3: Waiting e4b20fcc48f4: Waiting denied: requested access to the resource is denied
然后,我尝试使用docker tag my-app-1.0-snapshot:latest coding_jedi_first_deployment:1.00
标记该图像,然后尝试将其推送,但再次出现拒绝访问错误。我已经使用docker login
登录了。
The push refers to repository [docker.io/library/my_app_first_deployment]
5bd738db4dd5: Preparing a57994b863ef: Preparing 85802b819ba0: Preparing 3cb3e7a9fe58: Preparing 04dc636f40fe: Preparing 691339400516: Waiting 2ee490fbc316: Waiting b18043518924: Waiting 9a11244a7e74: Waiting 5f3a5adb8e97: Waiting 73bfa217d66f: Waiting 91ecdd7165d3: Waiting e4b20fcc48f4: Waiting denied: requested access to the resource is denied
我在做什么错>
答案 0 :(得分:2)
图像需要标记为manuchadha25/my-app-1.0-snapshot
然后你可以用
docker push manuchadha25/my-app-1.0-snapshot