简体   繁体   English

Docker build failed to solve with frontend dockerfile.v0: 未能创建 LLB 定义

[英]Docker build failed to solve with frontend dockerfile.v0: failed to create LLB definition

My docker build is failing with the following error:我的 docker 构建失败并出现以下错误:

#3 [internal] load metadata for pdr.akamai.com/library/tomcat9-java11:platform-2.19.4-RELEASE
#3 sha256:fe12d438fd0a4596fbe4a8af247e39a88858ee59a23a35a954fc8676153423fd
#3 ERROR: failed to do request: Head "https://pdr.akamai.com/v2/library/tomcat9-java11/manifests/platform-2.19.4-RELEASE": dial tcp 127.10.0.28:443: connect: connection refused
------
 > [internal] load metadata for pdr.akamai.com/library/tomcat9-java11:platform-2.19.4-RELEASE:
------
failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to do request: Head "https://pdr.akamai.com/v2/library/tomcat9-java11/manifests/platform-2.19.4-RELEASE": 
dial tcp 127.10.0.28:443: connect: connection refused

It looked like the server was not reachable from my machine.看起来我的机器无法访问服务器。

However when I tried curl command with verbose option, it's the same IP address that dns resolves to and I get a response.但是,当我尝试使用详细选项的 curl 命令时,它与 dns 解析到的 IP 地址相同,我得到了响应。

Following is the output of curl command下面是curl命令的output

❯ curl --verbose https://pdr.akamai.com/v2/library/tomcat9-java11/manifests/platform-2.19.4-RELEASE
*   Trying 127.10.0.28:443...
* Connected to pdr.akamai.com (127.10.0.28) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (OUT), TLS handshake, Client hello (1):
* (304) (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
*  subject: C=US; ST=Massachusetts; L=Cambridge; O=Akamai Technologies; CN=pdr.akamai.com
*  start date: Oct 26 12:53:44 2022 GMT
*  expire date: Apr 26 12:53:44 2023 GMT
*  subjectAltName: host "pdr.akamai.com" matched cert's "pdr.akamai.com"
*  issuer: C=US; ST=Massachusetts; L=Cambridge; O=Akamai Technologies; OU=KMI; CN=kdc_ca.2
*  SSL certificate verify ok.
> GET /v2/library/tomcat9-java11/manifests/platform-2.19.4-RELEASE HTTP/1.1
> Host: pdr.akamai.com
> User-Agent: curl/7.79.1
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Date: Tue, 10 Jan 2023 09:00:20 GMT
< Server: Apache
< Docker-Distribution-Api-Version: registry/2.0
< Content-Length: 34915
< Content-Type: application/vnd.docker.distribution.manifest.v1+prettyjws
< Docker-Content-Digest: sha256:98be2134cf221dc1bdb43a65cf7d7ce49a748ef02ad95e52fc6f999484f1cb91
< Docker-Distribution-Api-Version: registry/2.0
< Etag: "sha256:98be2134cf221dc1bdb43a65cf7d7ce49a748ef02ad95e52fc6f999484f1cb91"
< X-Content-Type-Options: nosniff
<

I tried flushing the DNS cache and still the issue remains.我尝试刷新 DNS 缓存,但问题仍然存在。 Is there some configuration I am missing?我缺少一些配置吗?

There seemed to be some issue with docker. I uninstalled docker completely including all config files and reinstalled it again. docker 似乎有一些问题。我完全卸载了 docker,包括所有配置文件,然后重新安装。 It's working now.它现在正在工作。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法解决前端 dockerfile.v0:无法创建 LLB 定义:无法执行请求:运行 docker 构建时出现头错误 - failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to do request: Head error when running docker build Docker | 无法使用前端 dockerfile.v0 解决:无法创建 LLB 定义:rpc 错误:code = Unknown desc - Docker | failed to solve with frontend dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc 错误:构建 Docker 图像时出现“无法使用前端 dockerfile.v0 解决:无法创建 LLB 定义:清单中的平台不匹配” - Error: "Failed to solve with frontend dockerfile.v0: failed to create LLB definition: no match for platform in manifest" when building a Docker image 无法使用前端 dockerfile.v0 解决:无法创建 LLB 定义:dockerfile 解析错误行 1:FROM 需要一个或三个参数 - failed to solve with frontend dockerfile.v0: failed to create LLB definition: dockerfile parse error line 1: FROM requires either one or three argumen 错误“无法使用前端 dockerfile.v0 解决:无法构建 LLB:执行程序运行失败” - Error "failed to solve with frontend dockerfile.v0: failed to build LLB: executor failed running" 无法使用前端 dockerfile.v0 解决:无法构建 LLB:执行器失败 - failed to solve with frontend dockerfile.v0: failed to build LLB: executor failed 无法使用前端 dockerfile.V0 解决 - failed to solve with frontend dockerfile.V0 错误“无法使用前端 dockerfile.v0 解决” - Error "failed to solve with frontend dockerfile.v0" 错误,“无法使用前端 dockerfile.v0 解决” - An error, "failed to solve with frontend dockerfile.v0" 无法使用前端 dockerfile.v0 解决:未能读取 dockerfile? - failed to solve with frontend dockerfile.v0: failed to read dockerfile?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM