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

 

转载于:https://www.cnblogs.com/Qing-840/p/9958364.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值