質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
docker-compose

docker-composeとは、複数のコンテナで構成されるサービスを提供する手順を自動的し管理を簡単にするツール。composeファイルを使用しコマンド1回で設定した全サービスを作成・起動することが可能です。

Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

ビルド

ソースコードを単体で実行可能なソフトウェアへ変換する過程をビルド(build)と呼びます

Docker

Dockerは、Docker社が開発したオープンソースのコンテナー管理ソフトウェアの1つです

Q&A

解決済

1回答

4013閲覧

【docker】docker buildできない。。

tetsutail_study

総合スコア25

docker-compose

docker-composeとは、複数のコンテナで構成されるサービスを提供する手順を自動的し管理を簡単にするツール。composeファイルを使用しコマンド1回で設定した全サービスを作成・起動することが可能です。

Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

ビルド

ソースコードを単体で実行可能なソフトウェアへ変換する過程をビルド(build)と呼びます

Docker

Dockerは、Docker社が開発したオープンソースのコンテナー管理ソフトウェアの1つです

0グッド

0クリップ

投稿2021/07/07 17:52

前提・実現したいこと

こちらの方が作成してくれたdockerイメージのビルドを試みたのですが、下記のようにエラーが出てしまい、うまくいきません。
エラーが発生している理由と解決方法を知りたいです。
よろしくお願いします。。

発生している問題・エラーメッセージ

bash

1user1@dgx1:~/Projects/OpenPose/openpose-docker$ docker build -t openpose . 2Sending build context to Docker daemon 330.2kB 3Step 1/14 : FROM nvidia/cuda:10.0-cudnn7-devel 4 ---> 510a4b73cab1 5Step 2/14 : ENV DEBIAN_FRONTEND noninteractive 6 ---> Using cache 7 ---> 131aa5dda18b 8Step 3/14 : ENV NVIDIA_VISIBLE_DEVICES all 9 ---> Using cache 10 ---> 6adffbcc1a71 11Step 4/14 : ENV NVIDIA_DRIVER_CAPABILITIES video,compute,utility 12 ---> Using cache 13 ---> 21f6398b9cdd 14Step 5/14 : ENV CMAKE_VER="3.13.4" 15 ---> Using cache 16 ---> 2368efec345e 17Step 6/14 : RUN set -xe && apt-get update && apt-get install -y git sudo wget qtbase5-dev build-essential ffmpeg gdebi libopencv-dev 18 ---> Running in 387884e629ca 19+ apt-get update 20Err:1 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease 21 Could not connect to developer.download.nvidia.com:443 (152.199.39.144), connection timed out 22Err:2 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 InRelease 23 Unable to connect to developer.download.nvidia.com:https: 24Err:3 http://archive.ubuntu.com/ubuntu bionic InRelease 25 Could not connect to archive.ubuntu.com:80 (91.189.88.152), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.88.142), connection timed out 26Err:4 http://security.ubuntu.com/ubuntu bionic-security InRelease 27 Could not connect to security.ubuntu.com:80 (91.189.91.38), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.39), connection timed out 28Err:5 http://archive.ubuntu.com/ubuntu bionic-updates InRelease 29 Unable to connect to archive.ubuntu.com:http: 30Err:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease 31 Unable to connect to archive.ubuntu.com:http: 32Reading package lists... 33W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease Could not connect to archive.ubuntu.com:80 (91.189.88.152), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.88.142), connection timed out 34W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Unable to connect to archive.ubuntu.com:http: 35W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Unable to connect to archive.ubuntu.com:http: 36W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease Could not connect to security.ubuntu.com:80 (91.189.91.38), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.39), connection timed out 37W: 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 38W: 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: 39W: Some index files failed to download. They have been ignored, or old ones used instead. 40+ apt-get install -y git sudo wget qtbase5-dev build-essential ffmpeg gdebi libopencv-dev 41Reading package lists... 42Building dependency tree... 43Reading state information... 44Package git is not available, but is referred to by another package. 45This may mean that the package is missing, has been obsoleted, or 46is only available from another source 47 48E: Package 'git' has no installation candidate 49E: Unable to locate package sudo 50E: Unable to locate package wget 51E: Unable to locate package qtbase5-dev 52E: Unable to locate package ffmpeg 53E: Unable to locate package gdebi 54E: Unable to locate package libopencv-dev 55The command '/bin/sh -c set -xe && apt-get update && apt-get install -y git sudo wget qtbase5-dev build-essential ffmpeg gdebi libopencv-dev' returned a non-zero code: 100

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

apt-getしている際に、リポジトリ接続で connection timed out しているので、おそらくコンテナから外に接続できていないと思われます。
NW周りの設定を見直してみてください。

投稿2021/07/08 01:34

comefigo

総合スコア1045

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

tetsutail_study

2021/07/08 02:03

回答ありがとうございます! docker初心者でして、具体的にはどういった設定を行えば、コンテナから外に接続できるようになるのか知りたいです。。
comefigo

2021/07/08 02:19

使用されている環境とDockerのバージョンなどを追加しましょう、
tetsutail_study

2021/07/09 03:28

ありがとうございます! 初心者でわからなかったので、色々調べるのに時間がかかってしまったのですが、Dockerfileにプロキシ設定を書き込むことで、そこまでのエラーが消えました! (その後、別のエラーが出ましたが。。←こっちは解決できそうにない場合、改めて質問投稿します)
comefigo

2021/07/09 05:31

ひとまずこの問題が解決できてよかったです。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問