dockerfile 的问题 FROM alpine:3.8 temporary error (try again later)
Posted qing-840
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了dockerfile 的问题 FROM alpine:3.8 temporary error (try again later)相关的知识,希望对你有一定的参考价值。
FROM alpine:3.8
apk add xxx安装软件
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
[91mWARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz: temporary error (try again later) [0mfetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz
[91mWARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz: temporary error (try again later) [0m[91mERROR: unsatisfiable constraints: [0m .persistent-deps-0: masked in: cache satisfies: world[.persistent-deps] ca-certificates (missing): required by: curl (missing): required by: tar (missing): required by: xz (missing): required by: libressl (missing): required by: The command ‘/bin/sh -c apk add --no-cache --virtual .persistent-deps ca-certificates curl tar xz libressl‘ returned a non-zero code: 6
解决:
#vim /etc/default/docker
#DOCKER_OPTS="--dns 114.114.114.114"
#systemctl restart docker
以上是关于dockerfile 的问题 FROM alpine:3.8 temporary error (try again later)的主要内容,如果未能解决你的问题,请参考以下文章
基于alpine用dockerfile创建的tomcat镜像
我们如何使用 dpkg 在 dockerfile 中的 alpine 图像上安装 google-chrome-stable?