Why does local anchore/syft image take up more space than reported on DockerHub page?

Anchore: Why is the size of syft image higher than what is mentioned in DockerHub. when i install its around 100 MB. Why is it that so?

Hi @calvinstephen487-oss thanks for the question.

I’m not sure exactly how you’re getting the size of the Syft image after pulling, but I’ll assume that you’re reading the size column from docker image ls. If I’m wrong, please let me know.

The column you’re looking at on Docker Hub says “Compressed size” but the column in docker image ls is just called Size. I think for that reason they are not directly comparable.

Testing with a random other image, we can see that nginx for arm v8 has a compressed size on the Dockerhub website of “30.12 MB”. However, when I pull this image and then list the size, a much larger number is reported:

$ docker pull nginx:stable-alpine3.21-perl
$ docker image ls | grep stable-alpine3.21-perl
nginx     stable-alpine3.21-perl        e4768e1accae   4 months ago    89.9MB

We can see a similar thing happening for Syft:

$ docker pull anchore/syft:v1.31.0
$ docker image ls | grep anchore/syft
anchore/syft     v1.31.0      e6f533bcf47b   12 days ago     56.6MB

Does this answer your question?

1 Like