码迷,mamicode.com
首页 > 其他好文 > 详细

dockerfile 的问题 FROM alpine:3.8 temporary error (try again later)

时间:2018-11-14 16:41:00      阅读:2843      评论:0      收藏:0      [点我收藏+]

标签:cdn   cert   ima   安装   file   x86_64   str   virtual   turn   

FROM alpine:3.8

 

 apk add xxx安装软件 

 

fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz: temporary error (try again later)
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz: temporary error (try again later)
ERROR: unsatisfiable constraints:
  .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)

标签:cdn   cert   ima   安装   file   x86_64   str   virtual   turn   

原文地址:https://www.cnblogs.com/Qing-840/p/9958364.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!