当前位置:   article > 正文

【docker】(已解决)failed to authorize failed fetch oauth token Post https auth.docker.io token Method…_failed to authorize: failed to fetch oauth token

failed to authorize: failed to fetch oauth token

文章目录

1 背景

想build一个镜像,终端输入命令:

docker build . -t client-custom:latest
  • 1

报出如下错误:

ERROR: failed to solve: laoaby/2024rmus:test: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed.
  • 1

在这里插入图片描述

于是我很快上网去查,出来的结果都是叽里呱啦不知道在讲什么,搞来搞去扯一通丝毫没有解决办法,完全是浪费时间,恶心死人了。

2 解决

在这里插入图片描述

查看Docker教程,受到启发,命令前面加个sudo即可。
也即:

sudo docker build . -t client-custom:latest
  • 1

over.

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/277124
推荐阅读
相关标签
  

闽ICP备14008679号