PHP 构建镜像错误 镜像build失败

1Panel版本:v1.8.5
系统版本:ubuntu-22.04(5.15.0-89-generic)
服务器位置:香港

创建运行环境,创建镜像遇到错误,换了可选的全部镜像源都不行,不知道为什么。

日志

#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.0s

#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 1.18kB done
#2 DONE 0.0s

#3 [internal] load metadata for docker.io/library/php:7.4.33-fpm-alpine
#3 ERROR: failed to do request: Head "https://registry-1.docker.io/v2/library/php/manifests/7.4.33-fpm-alpine": dial tcp 54.198.86.24:443: i/o timeout
------
 > [internal] load metadata for docker.io/library/php:7.4.33-fpm-alpine:
------
failed to solve: DeadlineExceeded: DeadlineExceeded: DeadlineExceeded: php:7.4.33-fpm-alpine: failed to do request: Head "https://registry-1.docker.io/v2/library/php/manifests/7.4.33-fpm-alpine": dial tcp 54.198.86.24:443: i/o timeout

你这个是docker.io超时了

1.Docker中国区官方镜像
https://registry.docker-cn.com

2.网易
http://hub-mirror.c.163.com

3.ustc
https://docker.mirrors.ustc.edu.cn

4.中国科技大学
https://docker.mirrors.ustc.edu.cn

可以尝试这些镜像源

1 个赞