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
{{ message }}
Repository navigation
Error: Unable to pull container image docker://alpine #91
We end up converting the config to an OCIConfig and then re-marshaling it, and the end result is the config comes out with the same content, except the map keys are sorted alphabetically, so the checksum no longer matches the original as listed in the manifest.
I noticed that skopeo inspect --config --raw does the right thing though, which is here:
Key difference is that just calls ConfigBlob instead of OCIConfig. So I guess since we already have GetConfig and GetFullConfig in the skopeo proxy, we could also add GetConfigBlob that uses ConfigBlob. For now I've patched GetFullConfig to sanity check that it works with great success:
Activity
jeckersb commentedon Apr 4, 2025
For completeness-sake, the error I get is:
cgwalters commentedon Apr 4, 2025
jeckersb commentedon Apr 7, 2025
@cgwalters helped me run this down today, the problem is basically here in skopeo:
https://github.com/containers/skopeo/blob/119816b17ce93274910c1e7d5914869582e5545e/cmd/skopeo/proxy.go#L506-L514
We end up converting the config to an
OCIConfigand then re-marshaling it, and the end result is the config comes out with the same content, except the map keys are sorted alphabetically, so the checksum no longer matches the original as listed in the manifest.I noticed that
skopeo inspect --config --rawdoes the right thing though, which is here:https://github.com/containers/skopeo/blob/119816b17ce93274910c1e7d5914869582e5545e/cmd/skopeo/inspect.go#L131-L139
Key difference is that just calls
ConfigBlobinstead ofOCIConfig. So I guess since we already haveGetConfigandGetFullConfigin the skopeo proxy, we could also addGetConfigBlobthat usesConfigBlob. For now I've patchedGetFullConfigto sanity check that it works with great success:allisonkarlitskaya commentedon Apr 7, 2025
How about just
GetBlob? Should work for JSON just as well as it does for layers, no?cgwalters commentedon Apr 7, 2025
Yes! We should indeed just call GetBlob. Actually I did this over here https://github.com/cgwalters/composefs-oci-experimental/blob/08a0d864223021ecf56477584f45419c846e0c80/src/repo.rs#L1134 now that I remember hitting this too...
oci: ensure_config: get raw config via `get_descriptor`
oci: ensure_config: get raw config via `get_descriptor`