docker load image size error

Recently, I just used Docker Desktop to run deep reinforcement learning code with an image. Then, there was a particularly strange bug. I used docker load to import the tar package provided by my senior, and after importing the image, I found that the image size had increased by 20G. Others’ imported image size was only 20G, but mine showed 40G. Then, I checked the image size through docker system df, and it was only a little over 20G, which was normal. However, docker images still showed 40G, which was very strange.

Today, I downloaded the ray-ml image provided by RAY from Docker Desktop and found that the downloaded image was also 20G larger. The original official size should be around 10G, but the one I downloaded was 30G.

Has anyone encountered a similar problem? Do you know how to solve it? Thank you very much.

This is normal when the containerd image store is used, as the imported original compressed image itself is retained + the extracted image.

But why others load the images, it is 20GB. I don’t quite know what you mean. I’m a newbie about the docker. How can I fix it? Or if I can use the image normally?

Most likely because they did not enable the containerd image store.

Please read the link I shared earlier carefully about what happens when you enable/disable the containerd image store.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.