gpt4 book ai didi

docker - 无法在Docker中推送图像

转载 作者:行者123 更新时间:2023-12-02 21:03:09 26 4
gpt4 key购买 nike

我已经使用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

关于docker - 无法在Docker中推送图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59482081/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com