wagoodman / dive

A tool for exploring each layer in a docker image
MIT License
44.53k stars 1.69k forks source link

Fix OCI format, GZIP files can be smaller than 1024 bytes #511

Open Maddog2050 opened 4 months ago

Maddog2050 commented 4 months ago

Here is a simple fix for the OCI format. When debugging I found that the GZIP size can be less than 1024 bytes when using containerd to pull the image.

I have tested with and without the "Use containerd for pulling and storing images" option in docker desktop and it appears to have fixed the issue. I also noticed issue #507 and downloading the example file it appears to resolve this issue also.

Fixes: #510 #507

Rud5G commented 3 months ago

Tested locally on my linux-amd64 with command: dive python:3.9.19-slim-bookworm

yoav-orca commented 3 months ago

@wagoodman can you merge this? I'm unable to use dive lately due to this bug