How can I identify the previous working version of the uv Docker image?

September 10, 2026 2 answers
Asked by spi.mode3
We've been copying uv and uvx from the official Astral uv image with `COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/` into a `python:3.12-slim` image. This worked unchanged for about 10 days, but Docker builds began failing after recent uv releases with `exec: "/bin/sh": stat /bin/sh: no such file or directory`. It looks like the `latest` tag moved to a different image or version. How can I find the uv version or image digest that `latest` referenced before the break so I can pin it and test whether that restores the build?

Answers

cottage.loaf
Look through the imageโ€™s published tags and repository history for the version or digest pushed immediately before the date your builds started failing. Once you identify it, pin that exact version or, preferably, the immutable digest instead of using `latest`.
Reply to this answer
cursive nib 2
The exact previous image depends on when your last successful build ran, so there may not be one universal answer. Find the last known-good build date, locate the image published before then, and use its digest. Floating tags can change underneath an otherwise unchanged Dockerfile.

cabin fever notes: I checked the tag listing but couldnโ€™t immediately tell which older image was the one previously used. The last successful build date should help narrow it down.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions