描述:通过alpine构建其他的镜像报错,报临时文件不可用,但是,通过浏览器是直接可以下载到tar包的。

fetch http://mirrors.aliyun.com/alpine/edge/testing/x86_64/APKINDEX.tar.gz
ERROR: http://mirrors.aliyun.com/alpine/v3.11/community: temporary error (try again later)
WARNING: Ignoring APKINDEX.2dee45f2.tar.gz: No such file or directory
ERROR: http://mirrors.aliyun.com/alpine/edge/testing: temporary error (try again later)
WARNING: Ignoring APKINDEX.f46ee61c.tar.gz: No such file or directory

解决:通过本地的网络进行构建,问题得到解决。

docker build -t tomcat:9.0.31-jdk8u202-alpine-hr . --network=host

参考文档:
https://github.com/gliderlabs/docker-alpine/issues/334

相关文章:

  • 2022-12-23
  • 2022-01-31
  • 2021-05-28
  • 2022-02-05
  • 2021-08-08
  • 2021-05-18
  • 2021-08-15
  • 2021-12-30
猜你喜欢
  • 2021-09-02
  • 2021-05-31
  • 2021-12-24
  • 2022-01-06
  • 2022-01-22
  • 2022-12-23
  • 2021-07-26
相关资源
相似解决方案