上传自己的镜像被拒绝denied: requested access to the resource

在本地编写dockerfile后,进行镜像打包。
使用docker images查看本地镜像

上传自己的镜像被拒绝denied: requested access to the resource

注册Docker Hub账号 https://hub.docker.com/
在本地执行 docker login -u xxxxx(dockerhub注册的docker用户名),登录docker成功
docker push kube-demo-node时,会出现一个错误
报了denied: requested access to the resource is denied异常

上传自己的镜像被拒绝denied: requested access to the resource

解决办法:
需要使用 docker tag改名字
docker tag kube-demo-node xxxxxx/kube-demo-node:latest

上面的信息显示是拒接访问,因为tag的名字斜线前面部分不是本人的用户名,下面把它修改为xxxxxx/kube-demo-node:latest就push成功。需要注意的是xxxxxx是本人的docker用户名。进入docker hub网站查看,发现多了一个公共的repository。

相关文章

Docker是什么Docker是 Docker.Inc 公司开源的一个基于 LXC技...
本文为原创,原始地址为:http://www.cnblogs.com/fengzheng...
镜像操作列出镜像:$ sudo docker imagesREPOSITORY TAG IMA...
本文原创,原文地址为:http://www.cnblogs.com/fengzheng/p...
在 Docker 中,如果你修改了一个容器的内容并希望将这些更改...
在Docker中,--privileged 参数给予容器内的进程几乎相同的权...