其他分享
首页 > 其他分享> > dockerfile用alpine构建镜像时apk update一直失败

dockerfile用alpine构建镜像时apk update一直失败

作者:互联网

报错如下

/ # apk update
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.15/main: temporary error (try again later)
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.15/main: No such file or directory
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.15/community: temporary error (try again later)
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.15/community: No such file or directory
2 errors; 14 distinct packages available

重启docker解决

标签:v3.15,dl,cdn,update,apk,https,org,dockerfile,alpine
来源: https://www.cnblogs.com/su511/p/16313903.html