Skip to content
This repository was archived by the owner on Nov 19, 2026. It is now read-only.
This repository was archived by the owner on Nov 19, 2026. It is now read-only.

docker→OCI conversion should differentiate compressed and uncompressed layers #229

Closed

Description

@mtrmac

Right now, in manifestSchema2.convertToManifestOCI1, we assume that all input layers are gzipped, which is not generally the case. We should somehow detect this (e.g. copy.copyLayers does actually know the true format at some point) and use the correct MIME type.

Activity

  1. runcom commented on Jan 28, 2017

    @runcom
    Member

    I also noticed we should fix the image config when converting from docker v2s2 to OCI 😢 right now we're blindly just changing docker config media type to OCI config media type but that's wrong because docker v2s2 config has "container_config" which OCI doesn't have. Let's merge #223 and re-iterate ok?

  2. mtrmac commented on Jan 28, 2017

    @mtrmac
    CollaboratorAuthor

    Yes, that’s why I filed this as a separate issue.

  3. runcom commented on Jan 31, 2017

    @runcom
    Member

    Right now, in manifestSchema2.convertToManifestOCI1, we assume that all input layers are gzipped,

    schema2 to oci1 is always gzipped layers afaict - there's no such "no-gzipped" layers in docker v2s2

  4. mtrmac commented on Jan 31, 2017

    @mtrmac
    CollaboratorAuthor

    Right now, in manifestSchema2.convertToManifestOCI1, we assume that all input layers are gzipped,

    schema2 to oci1 is always gzipped layers afaict - there's no such "no-gzipped" layers in docker v2s2

    Good point, dockerd always compresses the layers when pushing; but it does do format autodetection when pulling and supports both uncompressed layers and non-gzip compression formats.

    When both us and dockerd send layers compressed using gzip, so just assuming gzip should be good enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions