microsoft / containerregistry

Microsoft Artifact Registry description and related FAQ
396 stars 88 forks source link

display image sizes along with tag names #164

Open julielerman opened 1 month ago

julielerman commented 1 month ago

It wasn't easy to find a list of tag size on MCR but JSON reveals the details! :) And I'm curious as to why there is such a vast difference in image size as evidenced in these two listings.

Is it documented somewhere? Can mcr provide more details?

  {
        "name": "2022-RTM-rhel-8.5",
        "digest": "sha256:c11857324a77da0cb1ac092617fd400ee7ee13c98890c7c1fce63a9979e63046",
        "repository": "mssql/rhel/server",
        "operatingSystem": "linux",
        "architecture": "amd64",
        "lastModifiedDate": "2022-11-16T16:05:30.0000000+00:00",
        "manifestType": "application/vnd.docker.distribution.manifest.v2+json",
        "artifactType": "application/vnd.docker.container.image.v1+json",
        "size": 4239 
    },
    {
        "name": "2022-latest",
        "digest": "sha256:f37891ed65da2f51280b34e9fbe236cdccfc7a61e0c91f6c0c899be95bcb4ff9",
        "repository": "mssql/rhel/server",
        "operatingSystem": "linux",
        "architecture": "amd64",
        "lastModifiedDate": "2024-05-16T17:11:27.0000000+00:00",
        "manifestType": "application/vnd.docker.distribution.manifest.v2+json",
        "artifactType": "application/vnd.docker.container.image.v1+json",
        "size": 9022
    },

Originally posted by @julielerman in https://github.com/microsoft/mssql-docker/issues/886

Hermholtz commented 2 weeks ago

I would like to see the image size on mcr.microsoft.com. Why such a basic info is not available on the webpage? How am I supposed to select the smallest image for my embedded use?