gpt4 book ai didi

docker - 拒绝 : requested access to the resource is denied - Docker

转载 作者:行者123 更新时间:2023-12-02 20:00:03 24 4
gpt4 key购买 nike

我是 Docker 的新手,正在尝试将 Docker 图像推送到 hub.. 出现以下错误。

docker container run hellowold
This is v2

docker image tag hellowold:2 prateekaxyz/hellowold:latest

docker login http://hub.docker.com --username=prateek512
Password:
Login Succeeded

docker push prateekaxyz/hellowold:latest
The push refers to a repository [docker.io/prateekaxyz/hellowold]
93351e248e6e: Preparing
298c3bb2664f: Preparing
73046094a9b8: Preparing
denied: requested access to the resource is denied

最佳答案

您应该先登录。假设您在 https://hub.docker.com/ 中有一个帐户作为名称/密码= prateekaxyz/bar。

在推送之前,你应该

docker login -u prateekaxyz -p bar

登录成功后,您可以将镜像推送到您命名空间下的docker hub

请注意,您的图片应以您的名字开头,例如 prateekaxyz/aa:version

关于docker - 拒绝 : requested access to the resource is denied - Docker,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54494330/

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