Skip to content

[BUG]php环境安装失败 #2969

Description

@notec-inc

联系方式

No response

1Panel 版本

v1.8.2

问题描述

日志如下:

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

#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 1.27kB done
#2 WARN: Empty continuation line found in: RUN chmod +x install.sh     && sh install.sh     && rm -rf /tmp/extensions RUN apk  add tzdata     && cp "/usr/share/zoneinfo/$TZ" /etc/localtime     && echo "$TZ" > /etc/timezone
#2 DONE 0.0s

#3 [internal] load metadata for docker.io/library/php:8.2.10-fpm-alpine
#3 DONE 2.1s

#4 [ 1/12] FROM docker.io/library/php:8.2.10-fpm-alpine@sha256:4dfcb10fced59075c1fc9e7bb2f0e425f975314f3bb40cff9f3560ceb5ca9040
#4 CACHED

#5 [internal] load build context
#5 transferring context: 2.96MB 0.0s done
#5 DONE 0.0s

#6 [ 2/12] RUN if [ mirrors.163.com ] ; then sed -i "s/dl-cdn.alpinelinux.org/mirrors.163.com/g" /etc/apk/repositories ; fi
#6 DONE 4.5s

#7 [ 3/12] ADD ./extensions/install-php-extensions  /usr/local/bin/
#7 DONE 5.1s

#8 [ 4/12] RUN chmod uga+x /usr/local/bin/install-php-extensions
#8 DONE 5.4s

#9 [ 5/12] RUN apk --no-cache add tzdata
#9 0.357 fetch https://mirrors.163.com/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
#9 1.707 WARNING: fetching https://mirrors.163.com/alpine/v3.18/main: No such file or directory
#9 1.707 fetch https://mirrors.163.com/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
#9 3.069 WARNING: fetching https://mirrors.163.com/alpine/v3.18/community: No such file or directory
#9 3.069 ERROR: unable to select packages:
#9 3.069   tzdata (no such package):
#9 3.069     required by: world[tzdata]
#9 ERROR: process "/bin/sh -c apk --no-cache add tzdata" did not complete successfully: exit code: 1
------
 > [ 5/12] RUN apk --no-cache add tzdata:
#9 0.357 fetch https://mirrors.163.com/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
#9 1.707 WARNING: fetching https://mirrors.163.com/alpine/v3.18/main: No such file or directory
#9 1.707 fetch https://mirrors.163.com/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
#9 3.069 WARNING: fetching https://mirrors.163.com/alpine/v3.18/community: No such file or directory
#9 3.069 ERROR: unable to select packages:
#9 3.069   tzdata (no such package):
#9 3.069     required by: world[tzdata]
------
failed to solve: process "/bin/sh -c apk --no-cache add tzdata" did not complete successfully: exit code: 1

重现步骤

网上找了很多相关,很多失败的例子,但都没有解决貌似。这应该不是个例。
iptables已经开启
镜像加速也添加了
其他docker镜像,包括商店应用都正常运行。
只有php环境,无论版本,无论国内国外镜像源,都失败。

期待的正确结果

No response

相关日志输出

No response

附加信息

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions