質問編集履歴

3

Dockerinfoの編集

2024/06/28 00:20

投稿

gymgym
gymgym

スコア99

test CHANGED
File without changes
test CHANGED
@@ -114,8 +114,6 @@
114
114
  ID: 903859cf-e2da-4627-9bab-e646ae14ed64
115
115
  Docker Root Dir: /var/lib/docker
116
116
  Debug Mode: false
117
- HTTP Proxy: http://ykkproxy.ykk.jpn.ykkglobal:3128
118
- HTTPS Proxy: http://ykkproxy.ykk.jpn.ykkglobal:3128
119
117
  Experimental: false
120
118
  Insecure Registries:
121
119
  127.0.0.0/8

2

エラー内容の更新

2024/06/26 22:42

投稿

gymgym
gymgym

スコア99

test CHANGED
File without changes
test CHANGED
@@ -27,7 +27,7 @@
27
27
 
28
28
  USER root
29
29
 
30
- RUN sudo apt-get update && apt-get install -y python3-pip
30
+ RUN apt-get update && apt-get install -y python3-pip
31
31
 
32
32
  RUN python3 -m pip install --upgrade pip \
33
33
  && python3 -m pip install --no-cache-dir \
@@ -135,23 +135,48 @@
135
135
 
136
136
  ##### 上記の詳細・結果
137
137
  下記がbuildを実行したときのエラーとなります。
138
- [+] Building 0.8s (5/8) docker:default
138
+ [+] Building 40.3s (5/8) docker:default
139
139
  => [internal] load .dockerignore 0.1s
140
140
  => => transferring context: 2B 0.0s
141
141
  => [internal] load build definition from Dockerfile 0.1s
142
- => => transferring dockerfile: 469B 0.0s
142
+ => => transferring dockerfile: 464B 0.0s
143
143
  => [internal] load metadata for nvcr.io/nvidia/cuda:11.7.1-base-ubuntu22.04 0.0s
144
144
  => CACHED [1/5] FROM nvcr.io/nvidia/cuda:11.7.1-base-ubuntu22.04 0.0s
145
- => ERROR [2/5] RUN sudo apt-get update && apt-get install -y python3-pip 0.6s
146
- > [2/5] RUN sudo apt-get update && apt-get install -y python3-pip:
147
- 0.510 /bin/sh: 1: sudo: not found
145
+ => ERROR [2/5] RUN apt-get update && apt-get install -y python3-pip 40.0s
146
+ ------
147
+ > [2/5] RUN apt-get update && apt-get install -y python3-pip:
148
+
149
+ 38.35 Err:1 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 InRelease
150
+ 38.35 Could not connect to developer.download.nvidia.com:443 (152.199.39.144), connection timed out
151
+ 39.60 Err:2 http://archive.ubuntu.com/ubuntu jammy InRelease
152
+ 39.60 Could not connect to archive.ubuntu.com:80 (91.189.91.81), connection timed out Could not connect to archive.ubuntu.com:80 (185.125.190.83), connection timed out Could not connect to archive.ubuntu.com:80 (185.125.190.82), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.91.82), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.91.83), connection timed out Could not connect to archive.ubuntu.com:80 (185.125.190.81), connection timed out
153
+ 39.62 Err:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
154
+ 39.62 Unable to connect to archive.ubuntu.com:80:
155
+ 39.63 Err:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
156
+ 39.63 Unable to connect to archive.ubuntu.com:80:
157
+ 39.82 Err:5 http://security.ubuntu.com/ubuntu jammy-security InRelease
158
+ 39.82 Could not connect to security.ubuntu.com:80 (185.125.190.81), connection timed out Could not connect to security.ubuntu.com:80 (185.125.190.83), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.81), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.83), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.82), connection timed out Could not connect to security.ubuntu.com:80 (185.125.190.82), connection timed out
159
+ 39.85 Reading package lists...
160
+ 39.89 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease Could not connect to archive.ubuntu.com:80 (91.189.91.81), connection timed out Could not connect to archive.ubuntu.com:80 (185.125.190.83), connection timed out Could not connect to archive.ubuntu.com:80 (185.125.190.82), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.91.82), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.91.83), connection timed out Could not connect to archive.ubuntu.com:80 (185.125.190.81), connection timed out
161
+ 39.89 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease Unable to connect to archive.ubuntu.com:80:
162
+ 39.89 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease Unable to connect to archive.ubuntu.com:80:
163
+ 39.89 W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease Could not connect to security.ubuntu.com:80 (185.125.190.81), connection timed out Could not connect to security.ubuntu.com:80 (185.125.190.83), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.81), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.83), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.82), connection timed out Could not connect to security.ubuntu.com:80 (185.125.190.82), connection timed out
164
+ 39.89 W: Failed to fetch https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/InRelease Could not connect to developer.download.nvidia.com:443 (152.199.39.144), connection timed out
165
+ 39.89 W: Some index files failed to download. They have been ignored, or old ones used instead.
166
+ 39.91 Reading package lists...
167
+ 39.94 Building dependency tree...
168
+ 39.94 Reading state information...
169
+ 39.94 E: Unable to locate package python3-pip
170
+ ------
148
171
  Dockerfile:5
172
+ --------------------
149
173
  3 | USER root
150
174
  4 |
151
- 5 | >>> RUN sudo apt-get update && apt-get install -y python3-pip
175
+ 5 | >>> RUN apt-get update && apt-get install -y python3-pip
152
176
  6 |
153
177
  7 | RUN python3 -m pip install --upgrade pip \
178
+ --------------------
154
- ERROR: failed to solve: process "/bin/sh -c sudo apt-get update && apt-get install -y python3-pip" did not complete successfully: exit code: 127
179
+ ERROR: failed to solve: process "/bin/sh -c apt-get update && apt-get install -y python3-pip" did not complete successfully: exit code: 100
155
180
 
156
181
  ### 補足
157
182
  特になし

1

エラー文が見にくかったので編集しました

2024/06/26 08:55

投稿

gymgym
gymgym

スコア99

test CHANGED
File without changes
test CHANGED
@@ -143,18 +143,14 @@
143
143
  => [internal] load metadata for nvcr.io/nvidia/cuda:11.7.1-base-ubuntu22.04 0.0s
144
144
  => CACHED [1/5] FROM nvcr.io/nvidia/cuda:11.7.1-base-ubuntu22.04 0.0s
145
145
  => ERROR [2/5] RUN sudo apt-get update && apt-get install -y python3-pip 0.6s
146
- ------
147
146
  > [2/5] RUN sudo apt-get update && apt-get install -y python3-pip:
148
147
  0.510 /bin/sh: 1: sudo: not found
149
- ------
150
148
  Dockerfile:5
151
- --------------------
152
149
  3 | USER root
153
150
  4 |
154
151
  5 | >>> RUN sudo apt-get update && apt-get install -y python3-pip
155
152
  6 |
156
153
  7 | RUN python3 -m pip install --upgrade pip \
157
- --------------------
158
154
  ERROR: failed to solve: process "/bin/sh -c sudo apt-get update && apt-get install -y python3-pip" did not complete successfully: exit code: 127
159
155
 
160
156
  ### 補足