docker上传镜像错误:errors: denied: requested access to the resource is denied unauthorized: authentication

Posted 王大雏

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker上传镜像错误:errors: denied: requested access to the resource is denied unauthorized: authentication相关的知识,希望对你有一定的参考价值。

docker上传镜像错误:errors: denied: requested access to the resource is denied unauthorized: authentication

问题

docker上传镜像错误

errors:
denied: requested access to the resource is denied
unauthorized: authentication required

解决办法

在上传镜像之前,还需要先对本地镜像添加新的标签,然后再使用 docker push 命令进行上传。
新标签格式需为:

docker push 镜像名:标签 公共仓库名/镜像名:新标签


上传成功!

以上是关于docker上传镜像错误:errors: denied: requested access to the resource is denied unauthorized: authentication的主要内容,如果未能解决你的问题,请参考以下文章

Docker和K8s实战——往docker hub推送镜像出现denied: requested access to the resource is denied

Docker和K8s实战——往docker hub推送镜像出现denied: requested access to the resource is denied

Docker和K8s实战问题集——往docker hub推送镜像出现denied: requested access to the resource is denied

docker启动容器报permission denied错误处理

解决 error creating overlay mount to /var/lib/docker/overlay2

Docker Error response from daemon,Docker 换镜像