AWS ECR Manifest MediaType #2883
Labels
feat/oci
issue/mediaType
kind/bug
Something isn't working
priority/p1
Basic need feature compatibility with docker build. we should be working on this next.
Actual behavior
We use
gcr.io/kaniko-project/executor:debug
to build images for a long time, usually, our base images arepython
slim images, which when inspected have their manifest mediaType as"mediaType": "application/vnd.oci.image.manifest.v1+json",
.We proceed to push the images built by
kaniko
to ECR and they remain annotated with"mediaType": "application/vnd.docker.distribution.manifest.v2+json"
.Nevertheless, today we've noticed via some inconsistencies with unsupported
mediaType
that these same images when built had theirmediaType
pushed as OCI to our AWS ECR repository.I am unsure if this is expected or not since we've had processes for a long time working like this where the manifest was pushed as Docker V2 and not OCI. I've made a simple test locally (with Docker, though) and the image is pushed as Docker V2, but when running kaniko on GitLab CI the images were pushed as OCI.
Expected behavior
A clear and concise description of what you expected to happen.
I've expected the same behavior from previous executions where images were pushed as Docker V2 manifest
mediaType
.To Reproduce
Steps to reproduce the behavior:
Additional Information
Please provide either the Dockerfile you're trying to build or one that can reproduce this error.
Please provide or clearly describe any files needed to build the Dockerfile (ADD/COPY commands)
(internal image on ECR)
Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: