前提・実現したいこと
docker内でapt updateすると以下のエラーが出てしまいます。。
原因はなんでしょうか?
該当のソースコード
nvidia/cuda:10.2-cudnn8-devel-ubuntu18.04イメージをrunしてコンテナを作成・起動。
bash
1docker run -it -d --gpus '"device=5,6,7"' -v ${PWD}:/OpenPose/ --name OpenPose-docker2 nvidia/cuda:10.2-cudnn8-devel-ubuntu18.04 2
作成したコンテナにログイン
bash
1docker exec -it OpenPose-docker2 bash
コンテナ上でapt updateしてみると以下のエラーが出ます。。
bash
1root@a67b891426ec:~# apt update 2Err:1 http://archive.ubuntu.com/ubuntu bionic InRelease 3 Could not connect to archive.ubuntu.com:80 (91.189.88.142), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.88.152), connection timed out 4Err:2 http://security.ubuntu.com/ubuntu bionic-security InRelease 5 Could not connect to security.ubuntu.com:80 (91.189.91.39), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.38), connection timed out 6Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease 7 Unable to connect to archive.ubuntu.com:http: 8Err:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease 9 Unable to connect to archive.ubuntu.com:http: 10Err:5 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease 11 Could not connect to developer.download.nvidia.com:443 (152.199.39.144), connection timed out 12Err:6 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 InRelease 13 Unable to connect to developer.download.nvidia.com:https: 14Reading package lists... Done 15Building dependency tree 16Reading state information... Done 17All packages are up to date. 18W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease Could not connect to archive.ubuntu.com:80 (91.189.88.142), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.88.152), connection timed out 19W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Unable to connect to archive.ubuntu.com:http: 20W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Unable to connect to archive.ubuntu.com:http: 21W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease Could not connect to security.ubuntu.com:80 (91.189.91.39), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.38), connection timed out 22W: Failed to fetch https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/InRelease Could not connect to developer.download.nvidia.com:443 (152.199.39.144), connection timed out 23W: Failed to fetch https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/InRelease Unable to connect to developer.download.nvidia.com:https: 24W: Some index files failed to download. They have been ignored, or old ones used instead.
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2021/07/14 09:05
2021/07/14 09:26
2021/07/14 13:49