当前位置: 代码迷 >> 综合 >> docker build 报错 Ignoring APKINDEX.8d3fc6bf.tar.gz: No such file or directory
  详细解决方案

docker build 报错 Ignoring APKINDEX.8d3fc6bf.tar.gz: No such file or directory

热度:21   发布时间:2023-12-13 20:53:58.0

问题

在构建docker镜像时,执行apk update时,出现以下问题

[INFO] WARNING: Ignoring APKINDEX.8d3fc6bf.tar.gz: No such file or directory
[INFO] fetch https://mirrors.aliyun.com/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
[INFO] [91mERROR: https://mirrors.aliyun.com/alpine/v3.6/community/: temporary error (try again later)
[INFO] WARNING: Ignoring APKINDEX.53d054b0.tar.gz: No such file or directory
[INFO] 2 errors; 17 distinct packages available
[ERROR] The command '/bin/sh -c set -xe     && echo -e 'https://mirrors.aliyun.com/alpine/v3.6/main/\nhttps://mirrors.aliyun.com/alpine/v3.6/community/' > /etc/apk/repositories     && apk update     && apk upgrade     && apk --no-cache add ttf-dejavu fontconfig' returned a non-zero code: 2

解决方法

排除非网络问题导致后,尝试重启docker后,顺利解决以上问题。

systemctl restart docker

 

  相关解决方案