Невозможно собрать образ с помощью Docker в Ubuntu 16.04 - PullRequest
0 голосов
/ 08 июля 2019

Когда я пытался создать образ 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

Любая идея, как решить эту проблему, будет очень полезна.

Спасибо,

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...