push 镜像到docker Hub出现错误
denied: requested access to the resource is denied
我docker Hub中的私人仓库信息:
账户:kingbywork
仓库(Repositories):public-test
本地镜像信息如下:
问题:
本地已登录,使用命令上传报错:
命令:docker push kingbywork/public-test:ubuntu-ping
解决办法:
重新命名本地镜像的REPOSITORY和TAG
sudo docker tag kingbywork/public-test:ubuntu-ping kingbywork/public-test:ubuntu-ping
之后就能上传了。(Docker仓库限定的仓库的名称,即一个仓库就是一个镜像名,用户的镜像需要按照该仓库的路径严格命名,用户仅能定义镜像的标签)