tensorflow / tensorflow/tensorboard
Dockerfile fails to build on Ubuntu 22.04
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.2k
- Forks
- 1.7k
- Avg merge
- 4d 22h
- Merged PRs (30d)
- 1
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with Dockerfile line 5 and the preceding dependency-install step, then reproduce the reported docker build -t tensorboard . command. Check the Python package-install failure in the Ubuntu-based image; done means the image builds successfully past that step.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python, ubuntu
- Domain
- build-system, devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100