Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skopeo copy fails when image contains attestation manifest #1874

Closed
sjauld opened this issue Jan 22, 2023 · 6 comments
Closed

Skopeo copy fails when image contains attestation manifest #1874

sjauld opened this issue Jan 22, 2023 · 6 comments

Comments

@sjauld
Copy link

sjauld commented Jan 22, 2023

When images are built with buildx >= v0.10.0, an SLSA Provenance attestation is added. This causes skopeo copy to fail with the error

Error creating an updated image manifest: Error preparing updated manifest, layer \"sha256:<sha>\": unsupported MIME type for compression: application/vnd.in-toto+json

See https://github.com/docker/buildx/releases/tag/v0.10.0

@tyranron
Copy link

@mtrmac
Copy link
Collaborator

mtrmac commented Jan 23, 2023

Thanks for your report. What version of Skopeo is this? That’s not expected with ≥ 1.9.0 AFAICS.

If it happens with a recent version, please attach the complete output of skopeo --debug copy …

@sjauld
Copy link
Author

sjauld commented Jan 24, 2023

Thanks @mtrmac. I was using the latest version in the Debian Bullseye repo, which is horrendously out of date. It works fine when I build the latest version myself.

@tyranron as another workaround I added --sbom=false --provenance=false to my docker build step - this enables me to still use Debain version of skopeo to copy the containers.

@sjauld sjauld closed this as completed Jan 24, 2023
@tyranron
Copy link

@sjauld thanks for the workarounds!

@mtrmac
Copy link
Collaborator

mtrmac commented Feb 8, 2023

@snowmanstark Please file a separate issue, include the specific version number of Skopeo, and the debug output per #1874 (comment) .

@stefan-cukl
Copy link

there's a new BUILDX_NO_DEFAULT_ATTESTATIONS env var which can now be used with buildx v0.10.4

clearbluejar added a commit to clearbluejar/ghidra-python that referenced this issue Jul 26, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants