报错: You cannot push a "root" repository. Please rename your repository to docker.io/<user>/<repo> (ex: docker.io/2321079146/hello-world)
原因: docker commit提交的时候一定要用二级目录的形式,类似xxx/xxx而不能直接使用xxx,官方解释为:一级目录只能为Docker公司基础镜像存储,所有用户必须为二级目录
报错:requested access to the resource is denied
原因:tag里面没有用户
正确步骤
- 首先需要镜像命名:docker tag imageId 名称
- 正确格式是:docker push 2321079146/repository:tag
错误原因:主要是自己的理解错误,分级分错了,将仓库理解为镜像集合