今天一直出现这个问题。
镜像 build 失败:failed to solve: process “/bin/sh -c apk --no-cache add tzdata && cp "/usr/share/zoneinfo/$TZ" /etc/localtime && echo "$TZ" > /etc/timezone” did not complete successfully: exit code: 1
今天一直出现这个问题。
镜像 build 失败:failed to solve: process “/bin/sh -c apk --no-cache add tzdata && cp "/usr/share/zoneinfo/$TZ" /etc/localtime && echo "$TZ" > /etc/timezone” did not complete successfully: exit code: 1
换个加速 改下服务器 DNS
是说这个库不存在,alpine 从 3 开始就没有这个 tzdata 了。
------
> [1panel-php 8/12] RUN apk --no-cache add tzdata && cp "/usr/share/zoneinfo/Asia/Shanghai" /etc/localtime && echo "Asia/Shanghai" > /etc/timezone:
0.255 fetch https://mirrors.ustc.edu.cn/alpine/v3.21/main/x86_64/APKINDEX.tar.gz
5.261 WARNING: fetching https://mirrors.ustc.edu.cn/alpine/v3.21/main: temporary error (try again later)
5.261 fetch https://mirrors.ustc.edu.cn/alpine/v3.21/community/x86_64/APKINDEX.tar.gz
10.26 WARNING: fetching https://mirrors.ustc.edu.cn/alpine/v3.21/community: temporary error (try again later)
10.26 ERROR: unable to select packages:
10.26 tzdata (no such package):
10.26 required by: world[tzdata]
------
运行环境可以指定用哪个 alpine 版本不?
换个加速 改下服务器 DNS
我现在都能够访问,而且也尝试了使用官方镜像。都是这个 tzdata,其他的一些 库和软件都能拉回来。tzdata 应该是在 3.21中被移除了。但是 dockerfile 中还用了 tzdata。
本质上跟 tzdata 没什么关系 实际是网络问题
确实。。好象是今天的网络有问题!我的错,我关闭这个