Skip to content

Layer digests don't match pushed digests using docker #572

Closed
@jromero

Description

@jromero

It seems like there have been a few issues regarding Digest and compression (#150, #153, #158) yet I've come here with an unexpected issue brought on by the current compression.

It seems like the current compression used is great in regards of performance but our expectation was that it would produce a layer digest which resembles that of what docker would produce when pushing to a registry. That is not the case. docker uses default compression making calls to layer.Digest() unusable in our case and requires us to compress the layers yet again to get the appropriate and expected layer digest.

This issue appears affects both tarball.Layer and stream.Layer.

Proposal: Allow configuration of compression used at digest computation but default to gzip.DefaultCompression.

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