I'm tring to build an image from a Dockerfile, and get stuck when "RUN apt-get install ...", i want to know the reason. May be due to GFW, I don't know.
Another thing confused me is that the output log printed when run in build is different from the log printed when run in a container(i.e. run in "docker container run -it image_name /bin/bash").
Please help me.
I have tried some keywords like "apt-get install stuck", but i didn't find a similar question.
The Dockerfile:
FROM nvidia/cuda:9.0-devel-ubuntu16.04
MAINTAINER avanetten
ENV CUDNN_VERSION 7.3.0.29
LABEL com.nvidia.cudnn.version="${CUDNN_VERSION}"
RUN apt-get update && apt-get install -y --no-install-recommends \
apt-utils \
libcudnn7=$CUDNN_VERSION-1+cuda9.0 \
libcudnn7-dev=$CUDNN_VERSION-1+cuda9.0 && \
apt-mark hold libcudnn7 && \
rm -rf /var/lib/apt/lists/*
I run this:
sudo docker build --no-cache -t testimage .
and i stuck here
Sending build context to Docker daemon 2.043GB
Step 1/37 : FROM nvidia/cuda:9.0-devel-ubuntu16.04
---> 2a64416134d8
Step 2/37 : MAINTAINER avanetten
---> Running in 0a0f4e3bb485
Removing intermediate container 0a0f4e3bb485
---> 23c2cb4ab1ff
Step 3/37 : ENV CUDNN_VERSION 7.3.0.29
---> Running in 41b6be7dc176
Removing intermediate container 41b6be7dc176
---> 65f16199d658
Step 4/37 : LABEL com.nvidia.cudnn.version="${CUDNN_VERSION}"
---> Running in 0f5e7aece401
Removing intermediate container 0f5e7aece401
---> c41f04004970
Step 5/37 : RUN apt-get update && apt-get install -y --no-install-recommends apt-utils libcudnn7=$CUDNN_VERSION-1+cuda9.0 libcudnn7-dev=$CUDNN_VERSION-1+cuda9.0 && apt-mark hold libcudnn7 && rm -rf /var/lib/apt/lists/*
---> Running in 3a67681d2578
Get:1 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Ign:3 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 InRelease
Ign:4 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 InRelease
Get:5 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 Release [170 B]
Get:6 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 Release [170 B]
Get:7 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [940 kB]
Get:8 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 Release.gpg [170 B]
Get:9 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:10 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 Release.gpg [170 B]
Get:11 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 Packages [231 kB]
Get:12 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 Packages [54.1 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:14 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [12.7 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB]
Get:16 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [582 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:18 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [6114 B]
Get:19 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [176 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [1322 kB]
Get:22 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [13.1 kB]
Get:23 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [986 kB]
Get:24 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [19.1 kB]
Get:25 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [7942 B]
Get:26 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [8807 B]
Fetched 16.3 MB in 28s (570 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
libapt-inst2.0
The following NEW packages will be installed:
apt-utils libapt-inst2.0 libcudnn7 libcudnn7-dev
0 upgraded, 4 newly installed, 0 to remove and 13 not upgraded.
Need to get 242 MB of archives.
After this operation, 598 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libapt-inst2.0 amd64 1.2.32 [55.8 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apt-utils amd64 1.2.32 [196 kB]
Get:3 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 libcudnn7 7.3.0.29-1+cuda9.0 [126 MB]
^C
I can not see progress or rate from the log, then I delete the RUN part and finished image build and tried
docker container run --rm -it testimage /bin/bash
, and when the container is running, I run this:
apt-get update && apt-get install -y --no-install-recommends \
apt-utils \
libcudnn7=$CUDNN_VERSION-1+cuda9.0 \
libcudnn7-dev=$CUDNN_VERSION-1+cuda9.0 && \
apt-mark hold libcudnn7 && \
rm -rf /var/lib/apt/lists/*
, it works,the log is
root#74ce912f6318:/# apt-get update && apt-get install -y --no-install-recommends \
> apt-utils \
> libcudnn7=$CUDNN_VERSION-1+cuda9.0 \
> libcudnn7-dev=$CUDNN_VERSION-1+cuda9.0 && \
> apt-mark hold libcudnn7 && \
> rm -rf /var/lib/apt/lists/*
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Ign:4 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 InRelease
Ign:5 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 InRelease
Get:6 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:7 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 Release [170 B]
Get:8 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB]
Get:9 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 Release [170 B]
Get:10 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 Release.gpg [170 B]
Get:11 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 Release.gpg [170 B]
Get:12 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 Packages [231 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:14 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 Packages [54.1 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [176 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [1322 kB]
Get:18 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [940 kB]
Get:19 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [12.7 kB]
Get:20 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [582 kB]
Get:21 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [6114 B]
Ign:22 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages
Get:23 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [986 kB]
Get:24 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [19.1 kB]
Get:25 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [7942 B]
Get:26 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [8807 B]
Get:22 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [13.1 kB]
Fetched 16.3 MB in 39s (409 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libapt-inst2.0
The following NEW packages will be installed:
apt-utils libapt-inst2.0 libcudnn7 libcudnn7-dev
0 upgraded, 4 newly installed, 0 to remove and 13 not upgraded.
Need to get 242 MB of archives.
After this operation, 598 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libapt-inst2.0 amd64 1.2.32 [55.8 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apt-utils amd64 1.2.32 [196 kB]
Get:3 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 libcudnn7 7.3.0.29-1+cuda9.0 [126 MB]
31% [3 libcudnn7 63.8 MB/170 B 37523776%] 8995 kB/s 19s^C
This time, I can see the progress(i.e. 31%), I stop it myself with ctrl-c.
I have two expectations, first is to make the Dockerfile work, second is to see the progress. Thanks.
Related
i am trying to build a docker from the tensorflow dockerhub, using tensorflow version 2.4.3, i did a simple pull and docker file:
$ docker pull tensorflow/tensorflow:2.4.2-gpu
And here is the dockerfile:
FROM tensorflow/tensorflow:2.4.3-gpu
ADD . /path
WORKDIR /path
RUN apt-get -y update
RUN apt-get -y install sudo
However i get errors on the apt-get update line:
$ docker build -t tensorflow_gpu_build .
...
Step 4/10 : RUN apt-get -y update
---> Running in 7c67f26124cb
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:2 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease [1581 B]
Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:5 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1573 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [83.3 kB]
Err:2 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease
The following signatures couldn''t be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
Get:7 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [3145 kB]
Get:8 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [1371 kB]
Ign:9 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 InRelease
Hit:10 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 Release
Get:11 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [1412 kB]
Get:12 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [22.9 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2351 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [3568 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [30.8 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [64.0 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [20.5 kB]
Reading package lists...
W: GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease: The following signatures couldn''t be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease' is no longer signed.
I am unsure of where the problem is coming from, the same dockerfile worked fine on the latest tensorfow docker version, could it be normal behaviour because the tensorflow version is a little old?
It's possible that the key included in the image has been revoked by Nvidia in the meantime.
So, you have three possibilities:
You can check for a valid pub key for that repository, copy it to the image via Dockerfile and add it with this command:
apt-key add /path/to/key
You can add an "[ allow-insecure=yes ]" to the respective line in the /etc/apt/sources.list as elaborated here: https://unix.stackexchange.com/questions/198000/bypass-gpg-signature-checks-only-for-a-single-repository
You could try a newer image.
I have a dockerfile
FROM rocker/verse
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends build-essential libpq-dev python3.8 python3-pip python3-setuptools python3-dev
and it fails with ##[error]The command '/bin/sh -c apt-get update && apt-get install -y --no-install-recommends build-essential libpq-dev python3.8 python3-pip python3-setuptools python3-dev' returned a non-zero code: 100
This used to work a couple weeks ago.
Any suggestions how to remedy this?
complete error message:
2022-11-10T09:18:40.5040462Z Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
2022-11-10T09:18:40.5801563Z Get:2 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
2022-11-10T09:18:40.5879776Z Get:3 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [13.6 kB]
2022-11-10T09:18:40.5948497Z Get:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
2022-11-10T09:18:40.5954474Z Get:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]
2022-11-10T09:18:40.5997954Z Get:6 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [480 kB]
2022-11-10T09:18:40.6041090Z Get:7 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [761 kB]
2022-11-10T09:18:40.6109038Z Get:8 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [580 kB]
2022-11-10T09:18:40.6917686Z Get:9 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
2022-11-10T09:18:40.8476470Z Get:10 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1,792 kB]
2022-11-10T09:18:40.8636712Z Get:11 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]
2022-11-10T09:18:40.8670910Z Get:12 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]
2022-11-10T09:18:40.8688797Z Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [528 kB]
2022-11-10T09:18:40.8735637Z Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [881 kB]
2022-11-10T09:18:40.8808270Z Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [16.9 kB]
2022-11-10T09:18:40.8815528Z Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [944 kB]
2022-11-10T09:18:40.8887164Z Get:17 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [7,277 B]
2022-11-10T09:18:40.8893189Z Get:18 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [3,175 B]
2022-11-10T09:18:41.9120598Z Fetched 24.5 MB in 1s (17.3 MB/s)
2022-11-10T09:18:42.6535417Z Reading package lists...
2022-11-10T09:18:43.4353411Z Reading package lists...
2022-11-10T09:18:43.6303192Z Building dependency tree...
2022-11-10T09:18:43.6304720Z Reading state information...
2022-11-10T09:18:43.6364217Z Package python3.8 is not available, but is referred to by another package.
2022-11-10T09:18:43.6364814Z This may mean that the package is missing, has been obsoleted, or
2022-11-10T09:18:43.6365218Z is only available from another source
2022-11-10T09:18:43.6365378Z
2022-11-10T09:18:43.6389109Z [91mE: Package 'python3.8' has no installation candidate
2022-11-10T09:18:43.8543258Z [0mThe command '/bin/sh -c apt-get update && apt-get install -y --no-install-recommends build-essential libpq-dev python3.8 python3-pip python3-setuptools python3-dev' returned a non-zero code: 100
2022-11-10T09:18:43.8608722Z ##[error]The command '/bin/sh -c apt-get update && apt-get install -y --no-install-recommends build-essential libpq-dev python3.8 python3-pip python3-setuptools python3-dev' returned a non-zero code: 100
2022-11-10T09:18:43.8643823Z ##[error]The process '/usr/bin/docker' failed with exit code 100
2022-11-10T09:18:43.8710459Z ##[section]Finishing: Build and push an image to container registry
I changed the 3rd line to
RUN apt-get update && apt-get install -y --no-install-recommends build-essential libpq-dev python3.9 python3-pip python3-setuptools python3-dev
and it worked.
Still don't know why 3.8 stopped working though
I have dockerfile:
FROM tensorflow/tensorflow:1.5.0-devel-gpu-py3
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
and when I build it:
sudo docker build -t tf150image .
run container:
sudo docker run -dt --rm --gpus all -v "$(pwd)":/usr/src/app/ -p 8080:5000 --name tf150container tf150image
running bash in container:
sudo docker exec -it tf150container /bin/bash
and the want to update it via:
apt update
or
apt-get update
but it stuck at 0% [Working] forever:
root#db4002b042a8:/usr/src/app# apt-get update
Get:3 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:5 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial/universe Sources [9802 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:10 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [256 kB]
Get:11 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [2051 kB]
Get:12 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [15.9 kB]
Get:13 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [984 kB]
Get:14 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [8820 B]
Get:15 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [176 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [548 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [2560 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [16.4 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [1544 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [26.2 kB]
Get:22 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [10.9 kB]
Get:23 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [12.7 kB]
0% [Working]
How could I fix this problem?
I have already tried:
1.
apt-get clean
apt-get update
Before next attempt to build image:
sudo docker image prune -a
Replace /etc/apt/sources.list with the list generated at https://repogen.simplylinux.ch/:
#------------------------------------------------------------------------------#
# OFFICIAL UBUNTU REPOS #
#------------------------------------------------------------------------------#
###### Ubuntu Main Repos
deb http://pl.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://pl.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
###### Ubuntu Update Repos
deb http://pl.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://pl.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://pl.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://pl.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://pl.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://pl.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://pl.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://pl.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
But it gives following output:
root#db4002b042a8:/usr/src/app# apt-get update
Get:3 http://pl.archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:4 http://pl.archive.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Get:5 http://archive.canonical.com/ubuntu xenial InRelease [11.5 kB]
Get:6 http://pl.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:7 http://pl.archive.ubuntu.com/ubuntu xenial-proposed InRelease [260 kB]
Get:8 http://pl.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:9 http://pl.archive.ubuntu.com/ubuntu xenial/main Sources [1103 kB]
Get:10 http://pl.archive.ubuntu.com/ubuntu xenial/restricted Sources [5179 B]
Get:11 http://pl.archive.ubuntu.com/ubuntu xenial/universe Sources [9802 kB]
Get:12 http://archive.canonical.com/ubuntu xenial/partner Sources [2303 B]
Get:13 http://archive.canonical.com/ubuntu xenial/partner amd64 Packages [2763 B]
Get:14 http://pl.archive.ubuntu.com/ubuntu xenial/multiverse Sources [215 kB]
Get:15 http://pl.archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB]
Get:16 http://pl.archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:17 http://pl.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB]
Get:18 http://pl.archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [176 kB]
Get:19 http://pl.archive.ubuntu.com/ubuntu xenial-security/main Sources [311 kB]
Get:20 http://pl.archive.ubuntu.com/ubuntu xenial-security/restricted Sources [3239 B]
Get:21 http://pl.archive.ubuntu.com/ubuntu xenial-security/universe Sources [256 kB]
Get:22 http://pl.archive.ubuntu.com/ubuntu xenial-security/multiverse Sources [4950 B]
Get:23 http://pl.archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages [2051 kB]
Get:24 http://pl.archive.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [15.9 kB]
Get:25 http://pl.archive.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [984 kB]
Get:26 http://pl.archive.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [8820 B]
Get:27 http://pl.archive.ubuntu.com/ubuntu xenial-updates/main Sources [665 kB]
Get:28 http://pl.archive.ubuntu.com/ubuntu xenial-updates/restricted Sources [3941 B]
Get:29 http://pl.archive.ubuntu.com/ubuntu xenial-updates/universe Sources [548 kB]
Get:30 http://pl.archive.ubuntu.com/ubuntu xenial-updates/multiverse Sources [13.5 kB]
Get:31 http://pl.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [2560 kB]
Get:32 http://pl.archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [16.4 kB]
Get:33 http://pl.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [1544 kB]
Get:34 http://pl.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [26.2 kB]
Get:35 http://pl.archive.ubuntu.com/ubuntu xenial-proposed/main Sources [3596 B]
Get:36 http://pl.archive.ubuntu.com/ubuntu xenial-proposed/universe Sources [2526 B]
Get:37 http://pl.archive.ubuntu.com/ubuntu xenial-proposed/main amd64 Packages [31.7 kB]
Get:38 http://pl.archive.ubuntu.com/ubuntu xenial-proposed/universe amd64 Packages [2393 B]
Get:39 http://pl.archive.ubuntu.com/ubuntu xenial-backports/main Sources [7276 B]
Get:40 http://pl.archive.ubuntu.com/ubuntu xenial-backports/universe Sources [12.3 kB]
Get:41 http://pl.archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [10.9 kB]
Get:42 http://pl.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [12.7 kB]
0% [Working]
When I use other parent image e.g.:
FROM python:3.6-buster
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
Then I have no problem at all with apt-get update.
This is weird, because couple of months before, I have been able to do it with the same dockerfile without problems.
Adding this line right after FROM tensorflow/tensorflow:1.5.0-devel-gpu-py3 did it for me:
RUN rm /etc/apt/sources.list.d/* && apt clean && apt update
Your final dockerfile should look like:
FROM tensorflow/tensorflow:1.5.0-devel-gpu-py3
RUN rm /etc/apt/sources.list.d/* && apt clean && apt update
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
I was trying to install zeppelin as shown in this dockerfile, but with a different version of spark and hadoop (see this dockerfile in my repo for more details). However, I am getting the following error log when running apt-get update:
Step 5/10 : RUN apt-get update
---> Running in 1ee84513acc7
Ign http://ftp.debian.org jessie-backports InRelease
Ign http://ftp.debian.org jessie-backports Release.gpg
Ign http://deb.debian.org jessie InRelease
Ign http://ftp.debian.org jessie-backports Release
Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]
Err http://ftp.debian.org jessie-backports/main amd64 Packages
Get:2 http://deb.debian.org jessie-updates InRelease [16.3 kB]
Err http://ftp.debian.org jessie-backports/main amd64 Packages
Err http://ftp.debian.org jessie-backports/main amd64 Packages
Get:3 http://deb.debian.org jessie Release.gpg [1652 B]
Err http://ftp.debian.org jessie-backports/main amd64 Packages
Get:4 http://deb.debian.org jessie-updates/main amd64 Packages [20 B]
Get:5 http://security.debian.org jessie/updates/main amd64 Packages [992 kB]
Err http://ftp.debian.org jessie-backports/main amd64 Packages
404 Not Found
Get:6 http://deb.debian.org jessie Release [77.3 kB]
Get:7 http://deb.debian.org jessie/main amd64 Packages [9098 kB]
W: Size of file /var/lib/apt/lists/deb.debian.org_debian_dists_jessie-updates_main_binary-amd64_Packages.gz is not what the server reported 20 23046
W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-backports/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Fetched 10.2 MB in 1s (7375 kB/s)
The command '/bin/sh -c apt-get update' returned a non-zero code: 100
ERROR: Service 'zeppelin' failed to build
It seems like this is somehow related to the jessie package. I read this and this article and I tried including
RUN echo "deb [check-valid-until=no] http://cdn-fastly.deb.debian.org/debian jessie main" > /etc/apt/sources.list.d/jessie.list
RUN echo "deb [check-valid-until=no] http://archive.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list
RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list
RUN apt-get -o Acquire::Check-Valid-Until=false update
script before the apt-get update command in the dockerfile of my repo, but still without success.
I'm trying to install CVAT and I'm following this installation guide:
https://github.com/opencv/cvat/blob/develop/cvat/apps/documentation/installation.md#windows-10
I installed Docker and Git as mentioned in the guide.
Cloned the CVAT source code from GitHub repository.
After this, I tried building docker images as mentioned in the guide.
$ cd cvat
$ docker-compose build
The complete Output:
cvat_db uses an image, skipping
cvat_redis uses an image, skipping
Building cvat
Step 1/49 : FROM ubuntu:16.04
---> 657d80a6401d
Step 2/49 : ARG http_proxy
---> Using cache
---> ea9c09815fdf
Step 3/49 : ARG https_proxy
---> Using cache
---> f89f44a5f8df
Step 4/49 : ARG no_proxy
---> Using cache
---> 1b880afdbe43
Step 5/49 : ARG socks_proxy
---> Using cache
---> 363c0a550b77
Step 6/49 : ARG TZ
---> Using cache
---> bef9ff0b2b9d
Step 7/49 : ENV TERM=xterm http_proxy=${http_proxy} https_proxy=${https_proxy} no_proxy=${no_proxy} socks_proxy=${socks_proxy} LANG='C.UTF-8' LC_ALL='C.UTF-8' TZ=${TZ}
---> Using cache
---> 688cc1462f94
Step 8/49 : ARG USER
---> Using cache
---> 33042ece9638
Step 9/49 : ARG DJANGO_CONFIGURATION
---> Using cache
---> 176f7ed3f807
Step 10/49 : ENV DJANGO_CONFIGURATION=${DJANGO_CONFIGURATION}
---> Using cache
---> 6f6922b72aea
Step 11/49 : RUN apt-get update && apt-transport-https apt-get install -yq python-software-properties software-properties-common wget && add-apt-repository ppa:mc3man/xerus-media -y && add-apt-repository ppa:mc3man/gstffmpeg-keep -y && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq apache2 apache2-dev libapache2-mod-xsendfile supervisor ffmpeg gstreamer0.10-ffmpeg libldap2-dev libsasl2-dev python3-dev python3-pip tzdata unzip unrar p7zip-full vim && pip3 install -U setuptools && ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime && dpkg-reconfigure -f noninteractive tzdata && add-apt-repository --remove ppa:mc3man/gstffmpeg-keep -y && add-apt-repository --remove ppa:mc3man/xerus-media -y && rm -rf /var/lib/apt/lists/*
---> Running in f84af309de6a
Ign:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Ign:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Ign:3 http://security.ubuntu.com/ubuntu xenial-security Release
Ign:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Ign:5 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
Ign:6 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Ign:7 http://archive.ubuntu.com/ubuntu xenial Release
Ign:8 http://security.ubuntu.com/ubuntu xenial-security/main all Packages
Ign:9 http://archive.ubuntu.com/ubuntu xenial-updates Release
Ign:10 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages
Ign:11 http://archive.ubuntu.com/ubuntu xenial-backports Release
Ign:12 http://security.ubuntu.com/ubuntu xenial-security/restricted all Packages
Ign:13 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
Ign:14 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages
Ign:15 http://archive.ubuntu.com/ubuntu xenial/main all Packages
Ign:16 http://security.ubuntu.com/ubuntu xenial-security/universe all Packages
Ign:17 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages
Ign:18 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages
Ign:19 http://archive.ubuntu.com/ubuntu xenial/restricted all Packages
Ign:20 http://security.ubuntu.com/ubuntu xenial-security/multiverse all Packages
Ign:21 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
Ign:5 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
Ign:8 http://security.ubuntu.com/ubuntu xenial-security/main all Packages
Ign:10 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages
Ign:12 http://security.ubuntu.com/ubuntu xenial-security/restricted all Packages
Ign:22 http://archive.ubuntu.com/ubuntu xenial/universe all Packages
Ign:14 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages
Ign:23 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages
Ign:24 http://archive.ubuntu.com/ubuntu xenial/multiverse all Packages
Ign:25 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
Ign:26 http://archive.ubuntu.com/ubuntu xenial-updates/main all Packages
Ign:27 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages
Ign:16 http://security.ubuntu.com/ubuntu xenial-security/universe all Packages
Ign:28 http://archive.ubuntu.com/ubuntu xenial-updates/restricted all Packages
Ign:18 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages
Ign:29 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
Ign:20 http://security.ubuntu.com/ubuntu xenial-security/multiverse all Packages
Ign:30 http://archive.ubuntu.com/ubuntu xenial-updates/universe all Packages
Ign:5 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
Ign:31 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages
Ign:8 http://security.ubuntu.com/ubuntu xenial-security/main all Packages
Ign:32 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse all Packages
Ign:33 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages
Ign:10 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages
Ign:34 http://archive.ubuntu.com/ubuntu xenial-backports/main all Packages
Ign:12 http://security.ubuntu.com/ubuntu xenial-security/restricted all Packages
Ign:35 http://archive.ubuntu.com/ubuntu xenial-backports/restricted amd64 Packages
Ign:14 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages
Ign:36 http://archive.ubuntu.com/ubuntu xenial-backports/restricted all Packages
Ign:16 http://security.ubuntu.com/ubuntu xenial-security/universe all Packages
Ign:37 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages
Ign:18 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages
Ign:38 http://archive.ubuntu.com/ubuntu xenial-backports/universe all Packages
Ign:20 http://security.ubuntu.com/ubuntu xenial-security/multiverse all Packages
Ign:39 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse amd64 Packages
Ign:5 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
Ign:40 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse all Packages
Ign:13 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
Ign:8 http://security.ubuntu.com/ubuntu xenial-security/main all Packages
Ign:10 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages
Ign:15 http://archive.ubuntu.com/ubuntu xenial/main all Packages
Ign:12 http://security.ubuntu.com/ubuntu xenial-security/restricted all Packages
Ign:17 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages
Ign:14 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages
Ign:19 http://archive.ubuntu.com/ubuntu xenial/restricted all Packages
Ign:16 http://security.ubuntu.com/ubuntu xenial-security/universe all Packages
Ign:21 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
Ign:18 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages
Ign:22 http://archive.ubuntu.com/ubuntu xenial/universe all Packages
Ign:20 http://security.ubuntu.com/ubuntu xenial-security/multiverse all Packages
Ign:5 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
Ign:23 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages
Ign:8 http://security.ubuntu.com/ubuntu xenial-security/main all Packages
Ign:24 http://archive.ubuntu.com/ubuntu xenial/multiverse all Packages
Ign:10 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages
Ign:25 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
Ign:12 http://security.ubuntu.com/ubuntu xenial-security/restricted all Packages
Ign:26 http://archive.ubuntu.com/ubuntu xenial-updates/main all Packages
Ign:14 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages
Ign:27 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages
Ign:28 http://archive.ubuntu.com/ubuntu xenial-updates/restricted all Packages
Ign:16 http://security.ubuntu.com/ubuntu xenial-security/universe all Packages
Ign:18 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages
Ign:29 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
Ign:30 http://archive.ubuntu.com/ubuntu xenial-updates/universe all Packages
Ign:20 http://security.ubuntu.com/ubuntu xenial-security/multiverse all Packages
Ign:31 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages
Err:5 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
500 Internal Server Error [IP: 159.69.208.88 11371]
Ign:32 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse all Packages
Ign:8 http://security.ubuntu.com/ubuntu xenial-security/main all Packages
Ign:33 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages
Ign:10 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages
Ign:34 http://archive.ubuntu.com/ubuntu xenial-backports/main all Packages
Ign:12 http://security.ubuntu.com/ubuntu xenial-security/restricted all Packages
Ign:35 http://archive.ubuntu.com/ubuntu xenial-backports/restricted amd64 Packages
Ign:14 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages
Ign:36 http://archive.ubuntu.com/ubuntu xenial-backports/restricted all Packages
Ign:16 http://security.ubuntu.com/ubuntu xenial-security/universe all Packages
Ign:37 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages
Ign:18 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages
Ign:38 http://archive.ubuntu.com/ubuntu xenial-backports/universe all Packages
Ign:20 http://security.ubuntu.com/ubuntu xenial-security/multiverse all Packages
Ign:39 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse amd64 Packages
Ign:40 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse all Packages
Ign:13 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
Ign:15 http://archive.ubuntu.com/ubuntu xenial/main all Packages
Ign:17 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages
Ign:19 http://archive.ubuntu.com/ubuntu xenial/restricted all Packages
Ign:21 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
Ign:22 http://archive.ubuntu.com/ubuntu xenial/universe all Packages
Ign:23 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages
Ign:24 http://archive.ubuntu.com/ubuntu xenial/multiverse all Packages
Ign:25 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
Ign:26 http://archive.ubuntu.com/ubuntu xenial-updates/main all Packages
Ign:27 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages
Ign:28 http://archive.ubuntu.com/ubuntu xenial-updates/restricted all Packages
Ign:29 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
Ign:30 http://archive.ubuntu.com/ubuntu xenial-updates/universe all Packages
Ign:31 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages
Ign:32 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse all Packages
Ign:33 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages
Ign:34 http://archive.ubuntu.com/ubuntu xenial-backports/main all Packages
Ign:35 http://archive.ubuntu.com/ubuntu xenial-backports/restricted amd64 Packages
Ign:36 http://archive.ubuntu.com/ubuntu xenial-backports/restricted all Packages
Ign:37 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages
Ign:38 http://archive.ubuntu.com/ubuntu xenial-backports/universe all Packages
Ign:39 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse amd64 Packages
Ign:40 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse all Packages
Ign:13 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
Ign:15 http://archive.ubuntu.com/ubuntu xenial/main all Packages
Ign:17 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages
Ign:19 http://archive.ubuntu.com/ubuntu xenial/restricted all Packages
Ign:21 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
Ign:22 http://archive.ubuntu.com/ubuntu xenial/universe all Packages
Ign:23 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages
Ign:24 http://archive.ubuntu.com/ubuntu xenial/multiverse all Packages
Ign:25 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
Ign:26 http://archive.ubuntu.com/ubuntu xenial-updates/main all Packages
Ign:27 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages
Ign:28 http://archive.ubuntu.com/ubuntu xenial-updates/restricted all Packages
Ign:29 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
Ign:30 http://archive.ubuntu.com/ubuntu xenial-updates/universe all Packages
Ign:31 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages
Ign:32 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse all Packages
Ign:33 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages
Ign:34 http://archive.ubuntu.com/ubuntu xenial-backports/main all Packages
Ign:35 http://archive.ubuntu.com/ubuntu xenial-backports/restricted amd64 Packages
Ign:36 http://archive.ubuntu.com/ubuntu xenial-backports/restricted all Packages
Ign:37 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages
Ign:38 http://archive.ubuntu.com/ubuntu xenial-backports/universe all Packages
Ign:39 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse amd64 Packages
Ign:40 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse all Packages
Ign:13 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
Ign:15 http://archive.ubuntu.com/ubuntu xenial/main all Packages
Ign:17 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages
Ign:19 http://archive.ubuntu.com/ubuntu xenial/restricted all Packages
Ign:21 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
Ign:22 http://archive.ubuntu.com/ubuntu xenial/universe all Packages
Ign:23 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages
Ign:24 http://archive.ubuntu.com/ubuntu xenial/multiverse all Packages
Ign:25 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
Ign:26 http://archive.ubuntu.com/ubuntu xenial-updates/main all Packages
Ign:27 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages
Ign:28 http://archive.ubuntu.com/ubuntu xenial-updates/restricted all Packages
Ign:29 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
Ign:30 http://archive.ubuntu.com/ubuntu xenial-updates/universe all Packages
Ign:31 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages
Ign:32 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse all Packages
Ign:33 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages
Ign:34 http://archive.ubuntu.com/ubuntu xenial-backports/main all Packages
Ign:35 http://archive.ubuntu.com/ubuntu xenial-backports/restricted amd64 Packages
Ign:36 http://archive.ubuntu.com/ubuntu xenial-backports/restricted all Packages
Ign:37 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages
Ign:38 http://archive.ubuntu.com/ubuntu xenial-backports/universe all Packages
Ign:39 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse amd64 Packages
Ign:40 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse all Packages
Err:13 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
500 Internal Server Error [IP: 159.69.208.88 11371]
Ign:15 http://archive.ubuntu.com/ubuntu xenial/main all Packages
Ign:17 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages
Ign:19 http://archive.ubuntu.com/ubuntu xenial/restricted all Packages
Ign:21 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
Ign:22 http://archive.ubuntu.com/ubuntu xenial/universe all Packages
Ign:23 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages
Ign:24 http://archive.ubuntu.com/ubuntu xenial/multiverse all Packages
Err:25 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 Internal Server Error [IP: 159.69.208.88 11371]
Ign:26 http://archive.ubuntu.com/ubuntu xenial-updates/main all Packages
Ign:27 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages
Ign:28 http://archive.ubuntu.com/ubuntu xenial-updates/restricted all Packages
Ign:29 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
Ign:30 http://archive.ubuntu.com/ubuntu xenial-updates/universe all Packages
Ign:31 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages
Ign:32 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse all Packages
Err:33 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages
500 Internal Server Error [IP: 159.69.208.88 11371]
Ign:34 http://archive.ubuntu.com/ubuntu xenial-backports/main all Packages
Ign:35 http://archive.ubuntu.com/ubuntu xenial-backports/restricted amd64 Packages
Ign:36 http://archive.ubuntu.com/ubuntu xenial-backports/restricted all Packages
Ign:37 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages
Ign:38 http://archive.ubuntu.com/ubuntu xenial-backports/universe all Packages
Ign:39 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse amd64 Packages
Ign:40 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse all Packages
Reading package lists...
W: The repository 'http://security.ubuntu.com/ubuntu xenial-security Release' does not have a Release file.
W: The repository 'http://archive.ubuntu.com/ubuntu xenial Release' does not have a Release file.
W: The repository 'http://archive.ubuntu.com/ubuntu xenial-updates Release' does not have a Release file.
W: The repository 'http://archive.ubuntu.com/ubuntu xenial-backports Release' does not have a Release file.
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-amd64/Packages 500 Internal Server Error [IP: 159.69.208.88 11371]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages 500 Internal Server Error [IP: 159.69.208.88 11371]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-amd64/Packages 500 Internal Server Error [IP: 159.69.208.88 11371]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-amd64/Packages 500 Internal Server Error [IP: 159.69.208.88 11371]
E: Some index files failed to download. They have been ignored, or old ones used instead.
Service 'cvat' failed to build: The command '/bin/sh -c apt-get update && apt-transport-https apt-get install -yq python-software-properties software-properties-common wget && add-apt-repository ppa:mc3man/xerus-media -y && add-apt-repository ppa:mc3man/gstffmpeg-keep -y && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq apache2 apache2-dev libapache2-mod-xsendfile supervisor ffmpeg gstreamer0.10-ffmpeg libldap2-dev libsasl2-dev python3-dev python3-pip tzdata unzip unrar p7zip-full vim && pip3 install -U setuptools && ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime && dpkg-reconfigure -f noninteractive tzdata && add-apt-repository --remove ppa:mc3man/gstffmpeg-keep -y && add-apt-repository --remove ppa:mc3man/xerus-media -y && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
Errors:
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-amd64/Packages 500 Internal Server Error [IP: 159.69.208.88 11371]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages 500 Internal Server Error [IP: 159.69.208.88 11371]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-amd64/Packages 500 Internal Server Error [IP: 159.69.208.88 11371]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-amd64/Packages 500 Internal Server Error [IP: 159.69.208.88 11371]
E: Some index files failed to download. They have been ignored, or old ones used instead.
Service 'cvat' failed to build: The command '/bin/sh -c apt-get update && apt-transport-https apt-get install -yq python-software-properties software-properties-common wget && add-apt-repository ppa:mc3man/xerus-media -y && add-apt-repository ppa:mc3man/gstffmpeg-keep -y && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq apache2 apache2-dev libapache2-mod-xsendfile supervisor ffmpeg gstreamer0.10-ffmpeg libldap2-dev libsasl2-dev python3-dev python3-pip tzdata unzip unrar p7zip-full vim && pip3 install -U setuptools && ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime && dpkg-reconfigure -f noninteractive tzdata && add-apt-repository --remove ppa:mc3man/gstffmpeg-keep -y && add-apt-repository --remove ppa:mc3man/xerus-media -y && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
Your script failed at this line of Dockerfile
# Install necessary apt packages
RUN apt-get update && \
.....
Something are blocking Docker from connection.
So i guess you're using proxy and you don't provide proxy information to Docker. So it couldn't connect with internet.
Please see docker proxy