Description
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
.