You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have opened a revert PR (#12444) in case the maintainers judge this needs to be fixed quickly. I will take a stab at adjusting getImageSummaries to handle this case gracefully without re-introducing prior issues.
Description
Using an image ID (SHA 256) as
image
worked until compose 2.29.7.On 2.27.9:
On 2.31.0 (and later):
I suspect
as the culprit, or more specifically, the now unconditional call to
reference.ParseDockerRef
:compose/pkg/compose/images.go
Line 97 in a8469db
Related:
Steps To Reproduce
docker image ls --digests
, pick the full digest of any image (without thesha256:
prefix).docker-compose.yml
like above (but with the digest you picked in the previous step).docker compose up
Outcome:
Expected outcome: Compose starts a container with the image having this ID.
Compose Version
Docker Environment
Anything else?
Workaround:
Add the
sha256:
prefix. For example:image: sha256:f691df868290275974103c307537784a0e457ecfd8f188e06e52b8de8d1439f8
Note, it seems this causes
docker compose images
to wrongly "parse" the info:Compare with compose 2.29.7 (both with and without the
sha256:
prefix when doingcompose up
):The text was updated successfully, but these errors were encountered: