# How to find out the size of an image in the repository?

**URL:** https://community.sonatype.com/t/how-to-find-out-the-size-of-an-image-in-the-repository/12180
**Category:** Sonatype Nexus Repository
**Tags:** help, docker
**Created:** [March 1, 2024, 1:31pm UTC](https://community.sonatype.com/t/how-to-find-out-the-size-of-an-image-in-the-repository/12180 "2024-03-01T13:31:19Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![impkos](https://avatars.discourse-cdn.com/v4/letter/i/c4cdca/32.png) [@impkos](https://community.sonatype.com/u/impkos)
#### Post date: [March 1, 2024, 1:31pm UTC](https://community.sonatype.com/t/how-to-find-out-the-size-of-an-image-in-the-repository/12180/1 "2024-03-01T13:31:19Z")

</div>

1. Hello, do I understand correctly that the docker image in the hosted docker nexus and the same image:tag on the local host “docker pull image:tag” has a different size?
2. How can I see the volume of an image in the Nexus Docker repository? Can this be done from the web interface? Without doing “docker pull”

---

<div class="post-metadata">

### Author: ![mfrost](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/mfrost/32/1701_2.png) [@mfrost](https://community.sonatype.com/u/mfrost)
#### Post date: [March 4, 2024, 4:24pm UTC](https://community.sonatype.com/t/how-to-find-out-the-size-of-an-image-in-the-repository/12180/2 "2024-03-04T16:24:52Z")

</div>

Hi @impkos - [this Help doc](https://help.sonatype.com/en/components-and-assets-in-docker.html?_ga=2.12670256.649696778.1709562296-1226582745.1698774557) might be a good place to start to answer some of your questions.

---

<div class="post-metadata">

### Author: ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)
#### Post date: [March 4, 2024, 6:18pm UTC](https://community.sonatype.com/t/how-to-find-out-the-size-of-an-image-in-the-repository/12180/3 "2024-03-04T18:18:12Z")

</div>

For a docker tag the number you’d see in the Nexus UI is actually the bytes used by the manifest - not the size of all the layers. I don’t believe we calculate or display the latter anywhere in Nexus.

---

<div class="post-metadata">

### Author: ![impkos](https://avatars.discourse-cdn.com/v4/letter/i/c4cdca/32.png) [@impkos](https://community.sonatype.com/u/impkos)
#### Post date: [March 4, 2024, 7:51pm UTC](https://community.sonatype.com/t/how-to-find-out-the-size-of-an-image-in-the-repository/12180/4 "2024-03-04T19:51:12Z")

</div>

I wouldn’t be posting here if I didn’t find the answer in your help document

---

<div class="post-metadata">

### Author: ![Ralf\_Dahmen](https://avatars.discourse-cdn.com/v4/letter/r/dfb087/32.png) [@Ralf\_Dahmen](https://community.sonatype.com/u/Ralf_Dahmen)
#### Post date: [May 7, 2025, 6:15am UTC](https://community.sonatype.com/t/how-to-find-out-the-size-of-an-image-in-the-repository/12180/5 "2025-05-07T06:15:15Z")

</div>

the image size of a contianer image is quite important meta information. Are there any plans to implement this feature on the server side? Can we open a feature request for this?

@mpiggott @mfrost

---

<div class="post-metadata">

### Author: ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)
#### Post date: [May 8, 2025, 5:38pm UTC](https://community.sonatype.com/t/how-to-find-out-the-size-of-an-image-in-the-repository/12180/6 "2025-05-08T17:38:35Z")

</div>

I don’t believe so - given layers are shared it isn’t an indicator for how much space something consumes within Nexus.

---

<div class="post-metadata">

### Author: ![impkos](https://avatars.discourse-cdn.com/v4/letter/i/c4cdca/32.png) [@impkos](https://community.sonatype.com/u/impkos)
#### Post date: [May 8, 2025, 9:00pm UTC](https://community.sonatype.com/t/how-to-find-out-the-size-of-an-image-in-the-repository/12180/7 "2025-05-08T21:00:24Z")

</div>

how then to understand how much space this or that layer takes up, how to keep statistics on the volume of images so that later you can think about which image is the heaviest in weight for its further deletion?

---

<div class="post-metadata">

### Author: ![Ralf\_Dahmen](https://avatars.discourse-cdn.com/v4/letter/r/dfb087/32.png) [@Ralf\_Dahmen](https://community.sonatype.com/u/Ralf_Dahmen)
#### Post date: [May 11, 2025, 10:40am UTC](https://community.sonatype.com/t/how-to-find-out-the-size-of-an-image-in-the-repository/12180/8 "2025-05-11T10:40:09Z")

</div>

@mpiggott  
What a pity to hear that.  
What would be an alternative solution to determine the container image size (whether compressed or not) on the server side? 🤔  
This information would be very helpful both for optimizing the image itself and for analyzing the growth of the Nexus container repositories.

In my opinion, downloading each image to a client first is not very useful here.
