Sonatype Nexus Docker Registry - Disc Consumption - Sonatype Nexus Repository - Sonatype Community

Sonatype Nexus Docker Registry - Disc Consumption

post by ganeshthirumani5 on Aug 12, 2024

Ganesh Thirumani

I recently switched to using the Sonatype Nexus Repository for hosting my Docker images. Previously, I used the Docker registry image to store my Docker images.

With approximately 30 Docker images, the Docker registry image consumed around 13GB of space. However, after switching to the Sonatype Nexus image, the storage usage has increased to about 22GB which is huge.

I’m unable to pinpoint the cause of this significant increase in storage consumption. Any assistance in identifying and resolving this issue would be greatly appreciated.

with this data, I am creating the repo…

'{
  "name": "'$docker_hosted_repository_name'",
  "online": true,
  "storage": {
    "blobStoreName": "default",
    "strictContentTypeValidation": true,
    "writePolicy": "allow"
  },
  "component": {
    "proprietaryComponents": true
  },
  "docker": {
    "v1Enabled": false,
    "forceBasicAuth": true,
    "httpPort": '$docker_port'
   }
}'

Thanks in advance.

post by mprescott on Aug 13, 2024

Michael Prescott

Are you running the Compact Blobstore task? That will remove soft-deleted binaries permanently. Without that, they’ll accumulate.

post by ganeshthirumani5 on Aug 19, 2024

Ganesh Thirumani

I am not running tasks I am just creating and pushing my images…, I am guessing, the images are not storing by sharing common layers of docker images, is there any way that I can configure to use the shared layers if yes?