无法在Ubuntu 16.04中使用Docker构建映像

时间:2019-07-08 11:25:07

标签: docker ubuntu dockerfile

当我尝试构建Docker映像时,出现以下错误:

sudo docker build -t app .
Sending build context to Docker daemon  256.6MB
Step 1/14 : FROM r-base:3.5.0
 ---> 190658892827
Step 2/14 : RUN apt-get update && apt-get install -y     sudo     gdebi-core     pandoc     pandoc-citeproc     libcurl4-gnutls-dev     libcairo2-dev/unstable     libudunits2-dev     libxml2-dev     libxt-dev     libv8-dev     libgdal-dev     libssl-dev
 ---> Running in 9c11250f034c
Err:1 http://deb.debian.org/debian testing InRelease
  Temporary failure resolving 'deb.debian.org'
Err:2 http://http.debian.net/debian sid InRelease
  Temporary failure resolving 'http.debian.net'
Reading package lists...
W: Failed to fetch http://deb.debian.org/debian/dists/testing/InRelease  Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://http.debian.net/debian/dists/sid/InRelease  Temporary failure resolving 'http.debian.net'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
E: The value 'testing' is invalid for APT::Default-Release as such a release is not available in the sources
The command '/bin/sh -c apt-get update && apt-get install -y     sudo     gdebi-core     pandoc     pandoc-citeproc     libcurl4-gnutls-dev     libcairo2-dev/unstable     libudunits2-dev     libxml2-dev     libxt-dev     libv8-dev     libgdal-dev     libssl-dev' returned a non-zero code: 100

在我的 Docker文件中,我有以下几行-

FROM r-base:3.5.0

RUN apt-get update && apt-get install -y \
    sudo \
    gdebi-core \
    pandoc \
    pandoc-citeproc \
    libcurl4-gnutls-dev \
    libcairo2-dev/unstable \
    libudunits2-dev \
    libxml2-dev \
    libxt-dev \
    libv8-dev \
    libgdal-dev \
    libssl-dev

任何解决此问题的想法都会很有帮助。

谢谢

0 个答案:

没有答案