GoogleContainerTools / kaniko

Build Container Images In Kubernetes
Apache License 2.0
14.86k stars 1.44k forks source link

How to force kaniko to build OCI images with oci manifests instead of docker manifests? #2605

Open titou10titou10 opened 1 year ago

titou10titou10 commented 1 year ago

Actual behavior I'm not sure if it is a bug or a question. I've read somewhrer that kaniko produces oci images by default but's its not the case for me

Currently when I use kaniko to bulld an image, the media type in the manifests is "application/vnd.docker.distribution.manifest.v2+json"

Q: how to force kaniko to produce images with manifests"application/vnd.oci.image.config.v1+json"?

When I use buildah for the same build, the image is of type"application/vnd.oci.image.config.v1+json"?

Expected behavior I want a way for the images produced by kaniko to have a media type of "application/vnd.oci.image.config.v1+json"

Additional Information

randlega commented 1 year ago

Possibly related to: https://github.com/GoogleContainerTools/kaniko/issues/1836 ?