在进行build镜像的时候出现这样的报错:
1 2 3 4 5 6 7 8 9 10 11 12
| ✔ docker build -t lnmp:v1 . ✔ 1626 17:50:35 [+] Building 3.1s (4/4) FINISHED => [internal] load build definition from Dockerfile 0.1s => => transferring dockerfile: 37B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => ERROR [internal] load metadata for docker.io/library/centos:7 2.9s => [auth] library/centos:pull token for registry-1.docker.io 0.0s ------ > [internal] load metadata for docker.io/library/centos:7: ------ failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to authorize: rpc error: code = Unknown desc = failed to fetch oauth token: unexpected status: 401 Unauthorized
|
https://stackoverflow.com/questions/65361083/docker-build-failed-to-fetch-oauth-token-for-openjdk
如果您喜欢此博客或发现它对您有用,则欢迎对此发表评论。 也欢迎您共享此博客,以便更多人可以参与。 如果博客中使用的图像侵犯了您的版权,请与作者联系以将其删除。 谢谢 !