为什么我的Dockerfile会在Docker Hub中导致错误?

时间:2018-04-05 12:44:04

标签: haskell docker

我写了以下Dockerfile:

FROM ubuntu:xenial
ENV LANG C.UTF-8
ENV PATH /root/.local/bin:$PATH
ENV LTS lts-11.3


RUN \
  apt-get update && \
  apt-get -y upgrade && \
  apt-get -y install curl git openmpi-doc openmpi-bin libopenmpi-dev && \
  curl -sSL https://get.haskellstack.org/ | sh && \
  stack update && \
  stack upgrade && \
  stack install --resolver $LTS c2hs QuickCheck array attoparsec containers directory hspec optparse-applicative repa split text time vector && \
  stack install --resolver $LTS --extra-include-dirs=/usr/lib/openmpi/include --extra-lib-dirs=/usr/lib/openmpi/lib haskell-mpi-1.4.0 && \
  rm -rf /var/lib/apt/lists/*

CMD ["bash"]

在Docker Hub上自动生成它:

https://hub.docker.com/r/masterq/fdb/builds/b63fjdgpbcewabgbpfpugjh/

但它会导致错误报告“意外错误”。 但是我可以提取图像:

$ docker pull masterq/fdb:feature_dockerhub
feature_dockerhub: Pulling from masterq/fdb
22dc81ace0ea: Already exists
1a8b3c87dba3: Already exists
91390a1c435a: Already exists
07844b14977e: Already exists
b78396653dae: Already exists
2069ab170dd3: Pull complete
Digest: sha256:47ec2ba2d2df6a33bbca0208348774fcbd431f0d544a5cfe46f170d93f08c7fd
Status: Downloaded newer image for masterq/fdb:feature_dockerhub

为什么Docker Hub将我的Dockerfile维护为错误?

致以最诚挚的问候,

0 个答案:

没有答案