denied: requested access to the resource is denied 解决办法

往 dockerhub 上 push 本地镜像的时候 出现了下面这个提示:

denied: requested access to the resource is denied

解决办法:

  在 dodker 命令行里登录 docker 

步骤:
    1、docker tag firstimage YOUR_DOCKERHUB_NAME/firstimage
    2、docker push YOUR_DOCKERHUB_NAME/firstimage
  一般在这一步的时候就会出现上面的错误提示:

    就在这时,二话不说直接输入:docker login

      接着输入账号、密码

      再输入第 2 步的命令就可以了

  

原文地址:https://www.cnblogs.com/jcjc/p/11764970.html