简体   繁体   English

Docker 推“拒绝:请求访问资源被拒绝”

[英]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:这是我尝试过的:

  1. I create a repo online我在线创建一个回购协议

    • I've tried all of this for both public and private repos.我已经为公共和私人回购尝试了所有这些。
    • I just have a stardard account, this is not an organization.我只有一个标准帐户,这不是组织。
  2. docker login (Which succeeds) docker login (成功)

    • I've also tried docker login -u <username>我也试过docker login -u <username>
    • I've tried with and without the pass program (Both succeed in logging in)我尝试过使用和不使用pass程序(都成功登录)
    • To make sure it's not reporting a false"success" message I tried using an incorrect password and it failed accordingly so the login appears to work.为了确保它没有报告错误的“成功”消息,我尝试使用不正确的密码,但相应地失败了,因此登录似乎有效。
  3. docker tag <local repo name>:latest <username>/<online repo name>:v1

    • I've tried a myriad of other ways such as the following but they all produce the same error我已经尝试了无数其他方法,例如以下但它们都产生相同的错误
    • 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>
  4. docker push <username>/<online repo name>:v1

    • I've also tried docker push <username>/<online repo name>我也试过docker push <username>/<online repo name>
  5. 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.

相关问题 Docker 推送到私有注册表错误 [拒绝:请求访问资源被拒绝] - Docker push to private registry error [denied: requested access to the resource is denied] docker 推送错误“被拒绝:请求访问资源被拒绝” - docker push error "denied: requested access to the resource is denied" 无法将Docker映像推送到gitlab:拒绝:请求的对资源的访问被拒绝 - Impossible to push docker images to gitlab: denied: requested access to the resource is denied Docker 推入 Jenkins - 拒绝:请求的资源访问被拒绝 - Docker push in Jenkins - denied: requested access to the resource is denied 无法将 Docker 镜像推送到 Docker Hub; 请求访问资源被拒绝 - Cannot push Docker images to Docker Hub; requested access to the resource is denied Docker请求访问资源被拒绝 - Docker requested access to the resource is denied Docker被拒绝:请求的对资源的访问被拒绝 - Docker denied: requested access to the resource is denied 拒绝:请求访问资源被拒绝 - Docker - denied: requested access to the resource is denied - Docker 拒绝:请求访问资源被拒绝:docker - denied: requested access to the resource is denied: docker Docker Push在Red Hat Server中失败,错误为“ **拒绝:请求对资源的访问被拒绝**” - Docker Push has failed in Red Hat Server with error “**denied: requested access to the resource is denied**”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM