我已经使用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
我在做什么错>
最佳答案
图片需要标记为manuchadha25/my-app-1.0-snapshot
然后你可以用docker push manuchadha25/my-app-1.0-snapshot