如何解决docker认证问题failed to authorize:failed to fetch oauth token
docker认证问题failed to authorize:failed to fetch oauth token
- 报错信息[bash1]
解决方案
- 全局代理打开
- “buildkit”: false ,见[图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]

总结
以上为个人经验,希望能给大家一个参考,也希望大家多多支持脚本之家。
相关文章
CentOS7环境下使用Docker搭建PHP运行环境的过程详解
这篇文章主要介绍了CentOS7环境下使用Docker搭建PHP运行环境,文中给大家提到创建私有网络及安装nginx的方法,本文给大家介绍的非常详细,需要的朋友可以参考下2021-08-08
Spring Cloud中使用jib进行docker部署的步骤详解
这篇文章主要介绍了Spring Cloud中使用jib进行docker部署的步骤详解,本文通过图文并茂的形式给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下2020-09-09


最新评论