NVlabs / SegFormer

Official PyTorch implementation of SegFormer
https://arxiv.org/abs/2105.15203
Other
2.36k stars 332 forks source link

Problems with Docker on remote development server #106

Open mak7ostapenko opened 1 year ago

mak7ostapenko commented 1 year ago

When I run a build of the docker container with the next command

sudo docker build -t mmsegmentation docker/ --no-cache

I receive the next errors related to the GPG key of the Nvidia repository.

Sending build context to Docker daemon   7.68kB
Step 1/23 : ARG PYTORCH="1.11.0"
Step 2/23 : ARG CUDA="11.3"
Step 3/23 : ARG CUDNN="8"
Step 4/23 : FROM pytorch/pytorch:${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel
 ---> 730572d0c0dd
Step 5/23 : ENV TORCH_CUDA_ARCH_LIST="6.0 6.1 7.0+PTX"
 ---> Running in 07c62488918d
Removing intermediate container 07c62488918d
 ---> c09733f4d227
Step 6/23 : ENV TORCH_NVCC_FLAGS="-Xfatbin -compress-all"
 ---> Running in 151b6af3e511
Removing intermediate container 151b6af3e511
 ---> eb6b43d48a0d
Step 7/23 : ENV CMAKE_PREFIX_PATH="$(dirname $(which conda))/../"
 ---> Running in a7327ad599ca
Removing intermediate container a7327ad599ca
 ---> 8b36ac89ffd5
Step 8/23 : RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
 ---> Running in 551315061b96
Warning: apt-key output should not be parsed (stdout is not a terminal)
Executing: /tmp/apt-key-gpghome.pQpnWIlf3V/gpg.1.sh --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
gpg: requesting key from 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub'
gpg: WARNING: unable to fetch URI https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub: Server indicated a failure
Removing intermediate container 551315061b96
 ---> 75a2d2bb0b0d
Step 9/23 : RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
 ---> Running in 14698965c8fc
Warning: apt-key output should not be parsed (stdout is not a terminal)
Executing: /tmp/apt-key-gpghome.EUuy1IoNfW/gpg.1.sh --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
gpg: requesting key from 'https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub'
gpg: WARNING: unable to fetch URI https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub: Server indicated a failure
Removing intermediate container 14698965c8fc
 ---> 83330e98560f
Step 10/23 : RUN apt-get update && apt-get install -y git ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6 libgl1-mesa-glx     && apt-get clean     && rm -rf /var/lib/apt/lists/*
 ---> Running in 763457c58ab4
Err:1 http://archive.ubuntu.com/ubuntu bionic InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Err:2 http://security.ubuntu.com/ubuntu bionic-security InRelease
  Temporary failure resolving 'security.ubuntu.com'
Err:3 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  InRelease
  Temporary failure resolving 'developer.download.nvidia.com'
Err:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Err:5 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64  InRelease
  Temporary failure resolving 'developer.download.nvidia.com'
Err:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Reading package lists...
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease  Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease  Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease  Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease  Temporary failure resolving 'security.ubuntu.com'
W: Failed to fetch https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/InRelease  Temporary failure resolving 'developer.download.nvidia.com'
W: Failed to fetch https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/InRelease  Temporary failure resolving 'developer.download.nvidia.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
Package git is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'git' has no installation candidate
E: Unable to locate package ninja-build
E: Unable to locate package libglib2.0-0
E: Couldn't find any package by glob 'libglib2.0-0'
E: Couldn't find any package by regex 'libglib2.0-0'
E: Unable to locate package libsm6
E: Unable to locate package libxrender-dev
E: Unable to locate package libxext6
E: Unable to locate package libgl1-mesa-glx
The command '/bin/sh -c apt-get update && apt-get install -y git ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6 libgl1-mesa-glx     && apt-get clean     && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

What I have already tried:

I can run the container but inside there is no connection to the Internet and cannot update any packages.