Closed
Conversation
I noticed that installing a tool in a uv docker image warns by default: ``` $ docker run --rm -it ghcr.io/astral-sh/uv:debian uv tool install black Resolved 7 packages in 55ms Prepared 7 packages in 56ms Installed 7 packages in 4ms + black==26.1.0 + click==8.3.1 + mypy-extensions==1.1.0 + packaging==26.0 + pathspec==1.0.4 + platformdirs==4.9.2 + pytokens==0.4.1 Installed 2 executables: black, blackd warning: `/root/.local/bin` is not on your PATH. To use installed tools, add the directory to your PATH. ``` All docker containers have `HOME` defined, so we can expand `PATH` with the tool directory ``` docker run --rm alpine:3.22 sh -c 'echo alpine:3.22 $HOME $PATH' docker run --rm debian:trixie-slim sh -c 'echo debian:trixie-slim $HOME $PATH' docker run --rm buildpack-deps:trixie sh -c 'echo buildpack-deps:trixie $HOME $PATH' docker run --rm python:3.14-alpine3.23 sh -c 'echo python:3.14-alpine3.23 $HOME $PATH' docker run --rm python:3.13-alpine3.23 sh -c 'echo python:3.13-alpine3.23 $HOME $PATH' docker run --rm python:3.12-alpine3.23 sh -c 'echo python:3.12-alpine3.23 $HOME $PATH' docker run --rm python:3.11-alpine3.23 sh -c 'echo python:3.11-alpine3.23 $HOME $PATH' docker run --rm python:3.10-alpine3.23 sh -c 'echo python:3.10-alpine3.23 $HOME $PATH' docker run --rm python:3.9-alpine3.22 sh -c 'echo python:3.9-alpine3.22 $HOME $PATH' docker run --rm python:3.14-trixie sh -c 'echo python:3.14-trixie $HOME $PATH' docker run --rm python:3.13-trixie sh -c 'echo python:3.13-trixie $HOME $PATH' docker run --rm python:3.12-trixie sh -c 'echo python:3.12-trixie $HOME $PATH' docker run --rm python:3.11-trixie sh -c 'echo python:3.11-trixie $HOME $PATH' docker run --rm python:3.10-trixie sh -c 'echo python:3.10-trixie $HOME $PATH' docker run --rm python:3.9-trixie sh -c 'echo python:3.9-trixie $HOME $PATH' docker run --rm python:3.14-slim-trixie sh -c 'echo python:3.14-slim-trixie $HOME $PATH' docker run --rm python:3.13-slim-trixie sh -c 'echo python:3.13-slim-trixie $HOME $PATH' docker run --rm python:3.12-slim-trixie sh -c 'echo python:3.12-slim-trixie $HOME $PATH' docker run --rm python:3.11-slim-trixie sh -c 'echo python:3.11-slim-trixie $HOME $PATH' docker run --rm python:3.10-slim-trixie sh -c 'echo python:3.10-slim-trixie $HOME $PATH' docker run --rm python:3.9-slim-trixie sh -c 'echo python:3.9-slim-trixie $HOME $PATH' ``` ``` alpine:3.23 /root /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin alpine:3.22 /root /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin debian:trixie-slim /root /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin buildpack-deps:trixie /root /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin python:3.14-alpine3.23 /root /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin python:3.13-alpine3.23 /root /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin python:3.12-alpine3.23 /root /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin python:3.11-alpine3.23 /root /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin python:3.10-alpine3.23 /root /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin python:3.9-alpine3.22 /root /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin python:3.14-trixie /root /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin python:3.13-trixie /root /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin python:3.12-trixie /root /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin python:3.11-trixie /root /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin python:3.10-trixie /root /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin python:3.9-trixie /root /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin python:3.14-slim-trixie /root /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin python:3.13-slim-trixie /root /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin python:3.12-slim-trixie /root /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin python:3.11-slim-trixie /root /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin python:3.10-slim-trixie /root /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin python:3.9-slim-trixie /root /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ``` **Test Plan** We don't seem to have a standard way to build and test the images locally.
Member
|
I feel like this has come up before? @samypr100 may remember better |
Member
|
See #13057 |
Member
|
and #13391 |
Member
Author
|
Thanks for digging those up! Maybe the warning is wrong, or |
Member
Author
|
Fixed by an image refresh -.- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I noticed that installing a tool in a uv docker image warns by default:
All docker containers have
HOMEdefined, so we can expandPATHwith the tool directoryTest Plan We don't seem to have a standard way to build and test the images locally.