【问题描述】
网管从开发环境克隆了四台虚拟机及docker容器过来,作为uat环境使用,但是在配置好uat环境的流水线脚本后,每次执行uat分支就报错,其它分支可以正常执行;
fetch http://mirrors.ustc.edu.cn/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
ERROR: http://mirrors.ustc.edu.cn/alpine/v3.9/main: temporary error (try again later)
WARNING: Ignoring APKINDEX.402b7481.tar.gz: No such file or directory
fetch http://mirrors.ustc.edu.cn/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
ERROR: http://mirrors.ustc.edu.cn/alpine/v3.9/community: temporary error (try again later)
WARNING: Ignoring APKINDEX.fac2ba45.tar.gz: No such file or directory
ERROR: unsatisfiable constraints:
fontconfig (missing):
required by: world[fontconfig]
ttf-dejavu (missing):
required by: world[ttf-dejavu]
The command '/bin/sh -c apk --update add fontconfig ttf-dejavu' returned a non-zero code: 2
ERROR: Job failed: exit status 1
【原因分析&解决方案】
如果确认不是网络问题,一般只需要重启一下docker:systemctl restart docker 即可;
重启之后,再次构建一般就可以成功了。
标签:http,cn,v3.9,edu,docker,alpine From: https://www.cnblogs.com/heyi-77/p/17249284.html