Skip to content

Commit 6e8efe6

Browse files
committed
Use OCI manifest format for images from scratch
Images built from scratch where still using the outdated Docker v2 image format (recognizable in the mediaType `application/vnd.docker.distribution.manifest.v2+json`). This patch replaces that outdate format with the current one based in the OCI standard (marked by the mediaType `application/vnd.oci.image.manifest.v1+json`). Signed-off-by: Silvano Cirujano Cuesta <[email protected]>
1 parent a07d1ca commit 6e8efe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/v1/empty/image.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type emptyImage struct{}
2929

3030
// MediaType implements partial.UncompressedImageCore.
3131
func (i emptyImage) MediaType() (types.MediaType, error) {
32-
return types.DockerManifestSchema2, nil
32+
return types.OCIManifestSchema1, nil
3333
}
3434

3535
// RawConfigFile implements partial.UncompressedImageCore.

0 commit comments

Comments
 (0)