NotGlop / docker-drag

Download image from the Docker Hub HTTPS API
GNU General Public License v3.0
675 stars 191 forks source link

Fake layer ids #19

Closed bduman closed 4 years ago

bduman commented 4 years ago

Hi,

I am currently porting this tool to .net core tool platform. So i have experiment about some cases. That layer hashes calculated with sha256(layer.tar).

Also, recalculate layers when load image.tar

Could you check this ?

NotGlop commented 4 years ago

Just to bring an answer for information: fake layer IDs are just for building the archive (to guarantee an order in the tarball).

Those layer IDs are NOT the real layer IDs displayed in Docker (which are correctly retrieved from the archive downloaded, by the way). Hope this answers the question