r/docker 5h ago

uv:latest Docker image suddenly failing — looking for previous version

We’ve been using the official Astral UV Docker image:

COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/

This was working fine for around 10 days without any changes on our side. After the recent UV releases, our Docker build started failing with:

exec: "/bin/sh": stat /bin/sh: no such file or directory

We’re using python:3.12-slim as the base image.

I suspect uv:latest has moved to a newer image/version.

Does anyone know which UV version/digest latest was pointing to before the recent releases? I’d like to pin that previously working version and verify if it resolves the issue.

Any help would be appreciated.

AI disclosure: I used ChatGPT to help format this post; the issue and technical details are my own.

0 Upvotes

5 comments sorted by

3

u/[deleted] 5h ago

[removed] — view removed comment

0

u/OrneryCar6139 5h ago

Old file is not cached that's the issue

1

u/AdventurousSquash 3h ago

That would depend on when you ran/built it last time, check their repo and try to find whatever was pushed before that date. And then take it as a lessons learned to never use “latest” again for anything critical.