ARTIFACTORY: How does Docker orphan layers cleanup work

Sai Undurthi
2023-01-22 11:10

When you override the docker manifest.json (e.g. push a tag that already exists in the same path), then the redundant layers that exist become "orphans". “Orphan” layers have no reference in the manifest.json file of the docker image present in the docker repository in Artifactory.
 These layers will be cleaned by the DockerTagOrphanLayerCleanupJob, which runs every 90 seconds by default (artifactory.docker.tags.orphan.layer.cleanup.intervalSecs=90), with a quiet period of 300 seconds (artifactory.docker.tags.orphan.layer.cleanup.quietPeriodSecs=300).

To apply the above mentioned system properties please update them in the following file. A restart is required to apply the changes:$JFROG_HOME/artifactory/var/etc/artifactory/
SaaS customers reach out to support for any changes to the above properties.