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

Image copy fails for multi-arch images using scratch #991

Closed
mnaser opened this issue Jul 24, 2020 · 2 comments
Closed

Image copy fails for multi-arch images using scratch #991

mnaser opened this issue Jul 24, 2020 · 2 comments

Comments

@mnaser
Copy link

mnaser commented Jul 24, 2020

If you use the following Dockerfile:

FROM scratch
ADD http://icanhazip.com /ip

and build it using buildx for multiple architectures with this command:

DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --platform=linux/amd64,linux/arm64 --tag 127.0.0.1:5100/test:latest --push .

The registry at 127.0.0.1:5100 is simply an instance of registry:2. Once the image is built, any attempt to copy it will fail.

skopeo --insecure-policy copy --src-tls-verify=false --dest-tls-verify=false --all docker://127.0.0.1:5100/test:latest docker://127.0.0.1:5100/test:latest
Getting image list signatures
Copying 2 of 2 images in list
Copying image sha256:9e67fe4b66bf9999ad5076e4bab3914f4cdb4c844da1beb627c14dc2e4ac6138 (1/2)
FATA[0000] Error initializing image from source docker://127.0.0.1:5100/test:latest: unsupported docker v2s2 media type: "application/vnd.oci.image.layer.v1.tar+gzip" 
@mtrmac
Copy link
Collaborator

mtrmac commented Aug 8, 2020

Thanks for your report. This seems to be an invalid image (using OCI layers in v2s2 images, conflicting with https://github.com/docker/distribution/blob/master/docs/spec/manifest-v2-2.md#image-manifest-field-descriptions ).

Still, can you paste the full output of the failing skopeo --debug … copy …, please?

@rhatdan
Copy link
Member

rhatdan commented Oct 8, 2020

Closing do to lack of information, reopen if info becomes available.

@rhatdan rhatdan closed this as completed Oct 8, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 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

3 participants