[英]Docker push "denied: requested access to the resource is denied"
I'm on Ubuntu Linux Server 20.04
and this is my first time pushing something to Docker so I just created a dummy container locally and it worked.我在Ubuntu Linux Server 20.04
上,这是我第一次将内容推送到 Docker,所以我只是在本地创建了一个虚拟容器并且它起作用了。 Following some tutorials online, the hello-world
example also works just fine.按照一些在线教程, hello-world
示例也可以正常工作。
Here's what I've tried:这是我尝试过的:
I create a repo online我在线创建一个回购协议
docker login
(Which succeeds) docker login
(成功)
docker login -u <username>
我也试过docker login -u <username>
pass
program (Both succeed in logging in)我尝试过使用和不使用pass
程序(都成功登录) docker tag <local repo name>:latest <username>/<online repo name>:v1
docker tag <local repo name>:latest <username>/<repo name>:latest
docker tag <local repo name> <username>/<repo name>:latest
docker tag <local repo name>:latest <username>/<repo name>:v1
docker tag <local repo name> <username>/<repo name>:v1
docker tag <local repo name>:latest <username>/<repo name>
docker tag <local repo name> <username>/<repo name>
docker push <username>/<online repo name>:v1
docker push <username>/<online repo name>
我也试过docker push <username>/<online repo name>
This is the output这是output
The push refers to repository [docker.io/<username>/<online repo name>]
3c8373fcfed2: Preparing
dc881c014b38: Preparing
933337b6e971: Preparing
10e1cb1c03c2: Preparing
770786057cc0: Preparing
570175f149e2: Waiting
3e207b409db3: Waiting
denied: requested access to the resource is denied
At this point I've just given up, I don't understand why it's being denied and not pushing but I've gone through 2 Google pages of links trying to research this spanning 2 days so I don't know what else to do.在这一点上我刚刚放弃了,我不明白为什么它被拒绝而不是推动但我已经浏览了 2 个谷歌链接页面试图研究这个跨越 2 天所以我不知道还能做什么.
In attempt to not store my docker password unencrypted I'm using the recommended pass
program on the Docker website.为了不存储未加密的 docker 密码,我使用了 Docker 网站上推荐的pass
程序。 If I give up and just allow my password to be unencrypted it works.如果我放弃并只允许我的密码未加密,它就可以工作。 This is an issue with pass
or Docker's communication with pass
.这是pass
或 Docker 与pass
通信的问题。 I'm not happy about having to have my password unencrypted but it's either that or I can't push to Docker Hub.我对不得不让我的密码未加密感到不高兴,但要么是这样,要么我无法推送到 Docker 集线器。
There are 4 solutions for not storing your password unencrypted and the only one for Linux servers is pass
.有 4 种不加密存储密码的解决方案,唯一适用于 Linux 服务器的解决方案是pass
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.