Help me understand docker image size

Hi,

I build a simple dotnet app and put it in a docker image. When I do docker images it show my image is about 500MB.

But when I do docker inspect, the .Size field says the image size is about 168MB. If I use docker save to export the image into a tar file, the file size is also about 168MB. I think the tar file is not compressed.

So, I am confused which one the the uncompressed image size, which one is the compressed image size.

Thanks

Please see my reply on your other thread

Why create another thread?

I thought they were two different questions: one about how a multi-platform image is created and one about how to interpret the image size information. Well, now they look like they are the same problem.