Dockerfile fails to build on Ubuntu 22.04

オープン
#6,909 コメント 0 件 リアクション 3 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
docker, python, ubuntu

調査の方向性

Dockerfile の 5 行目と、その前の依存関係インストール手順から始め、報告されているコマンド docker build -t tensorboard . を再現します。Ubuntu ベースのイメージで発生する Python パッケージのインストール失敗を確認します。その手順を正常に通過してイメージがビルドできれば完了です。

索引モデルが issue の本文から書いたものです。

説明

CLI Output

$ docker build -t tensorboard .

[+] Building 62.7s (7/17)                                                                                         docker:default
 => [internal] load build definition from Dockerfile                                                                        0.0s
 => => transferring dockerfile: 1.26kB                                                                                      0.0s
 => [internal] load metadata for docker.io/library/ubuntu:latest                                                            0.0s
 => [internal] load .dockerignore                                                                                           0.0s
 => => transferring context: 103B                                                                                           0.0s
 => [ 1/13] FROM docker.io/library/ubuntu:latest                                                                            0.0s
 => [internal] load build context                                                                                           1.0s
 => => transferring context: 163.97MB                                                                                       1.0s
 => [ 2/13] RUN apt update && apt install -y wget unzip python3 python3-pip python3-dev python-is-python3 default-jdk nod  62.3s
 => ERROR [ 3/13] RUN python3 -m pip install -U pip                                                                         0.4s
------
 > [ 3/13] RUN python3 -m pip install -U pip:
0.357 error: externally-managed-environment
0.357
0.357 × This environment is externally managed
0.357 ╰─> To install Python packages system-wide, try apt install
0.357     python3-xyz, where xyz is the package you are trying to
0.357     install.
0.357
0.357     If you wish to install a non-Debian-packaged Python package,
0.357     create a virtual environment using python3 -m venv path/to/venv.
0.357     Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
0.357     sure you have python3-full installed.
0.357
0.357     If you wish to install a non-Debian packaged Python application,
0.357     it may be easiest to use pipx install xyz, which will manage a
0.357     virtual environment for you. Make sure you have pipx installed.
0.357
0.357     See /usr/share/doc/python3.12/README.venv for more information.
0.357
0.357 note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
0.357 hint: See PEP 668 for the detailed specification.
------
Dockerfile:5
--------------------
   3 |     # Install environment dependencies
   4 |     RUN apt update && apt install -y wget unzip python3 python3-pip python3-dev python-is-python3 default-jdk nodejs npm
   5 | >>> RUN python3 -m pip install -U pip
   6 |
   7 |     # Setup build environment
--------------------
ERROR: failed to solve: process "/bin/sh -c python3 -m pip install -U pip" did not complete successfully: exit code: 1
主要言語
TypeScript
スター
7.2k
フォーク
1.7k
平均マージ
1日 13時間
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tensorflow/tensorboard のほかの issue

tensorflow/tensorboard の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。