亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

如何解決docker認(rèn)證問(wèn)題failed to authorize:failed to fetch oauth token

 更新時(shí)間:2025年03月06日 15:16:53   作者:kkkkkkkkkkaZZL  
這篇文章主要介紹了在使用Docker構(gòu)建鏡像時(shí)遇到的認(rèn)證問(wèn)題,并提供了兩種解決方案:全局代理設(shè)置和禁用BuildKit,文章還指出了一個(gè)Dockerfile中的語(yǔ)法錯(cuò)誤,并提供了修正建議

docker認(rèn)證問(wèn)題failed to authorize:failed to fetch oauth token

  • 報(bào)錯(cuò)信息[bash1]

解決方案

  1. 全局代理打開(kāi)
  2. “buildkit”: false ,見(jiàn)[圖1]

[bash1]

>docker build -t ffpg .
[+] Building 71.8s (3/3) FINISHED                                                                  docker:desktop-linux
 => [internal] load build definition from Dockerfile                                                               0.0s
 => => transferring dockerfile: 23.36kB                                                                            0.0s
 => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 17)                                    0.0s
 => ERROR [internal] load metadata for docker.io/library/ubuntu:20.04                                             23.5s
 => [auth] library/ubuntu:pull token for registry-1.docker.io                                                      0.0s
------
 > [internal] load metadata for docker.io/library/ubuntu:20.04:
------

 1 warning found (use docker --debug to expand):
 - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 17)
Dockerfile:8
--------------------
   6 |     #
   7 |     #
   8 | >>> FROM        ubuntu:20.04 AS base
   9 |
  10 |     WORKDIR     /tmp/workdir
--------------------
ERROR: failed to solve: ubuntu:20.04: failed to resolve source metadata for docker.io/library/ubuntu:20.04: failed to authorize: failed to fetch oauth token: Post "https://auth.docker.io/token": dial tcp 69.63.176.15:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

[圖1]

總結(jié)

以上為個(gè)人經(jīng)驗(yàn),希望能給大家一個(gè)參考,也希望大家多多支持腳本之家。

相關(guān)文章

最新評(píng)論