unauthorized: authentication required)
问题
docker镜像上传错误
denied: requested access to the resource is denied
unauthorized: authentication required
原因
没有让镜像做标签
解决
在上传镜像之前,还需要先对本地镜像添加新的标签,然后再使用 docker push 命令进行上传。 新标签格式需为:
docker tag 镜像名字:版本号 新标签:版本号
或者
docker tag image id 号 新标签:新版本号
公共仓库名就是docker hub里自己创建的仓库名字 然后才重新上传就可以了