错误:不可满足的限制:在高山

时间:2018-01-24 08:29:01

标签: docker apk dockerfile alpine

我正在尝试构建基于Alpine的docker镜像,我需要在其中安装几个包。这正是我想要做的:

FROM alpine:latest
RUN apk --no-cache add ca-certificates=20161130-r2 openssl=1.0.2k-r0

但是当我运行docker build时,这是我得到的错误:

RUN apk --no-cache add ca-certificates=20161130-r2 openssl=1.0.2k-r0
 ---> Running in a061dcd5071e
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
  ca-certificates-20171114-r0:
    breaks: world[ca-certificates=20161130-r2]
  openssl-1.0.2n-r0:
    breaks: world[openssl=1.0.2k-r0]
The command '/bin/sh -c apk --no-cache add ca-certificates=20161130-r2 openssl=1.0.2k-r0' returned a non-zero code: 2

我尝试过运行apk更新并重新启动计算机,但似乎没有任何工作。我可以ping并打开" http://dl-cdn.alpinelinux.org/alpine/v3.7/main/",任何想法可能是造成此错误的原因在这里?或者我该如何解决?

0 个答案:

没有答案