From 723e676b75097a6e7c16f83525abdd5977dbea2a Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 2 Oct 2026 21:49:03 +0200 Subject: [PATCH] The store enables deletion and collects nightly (hq ADR 0189) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit REGISTRY_STORAGE_DELETE_ENABLED on the server — the door already accepts a push — and a scheduled step running the registry's own collector over the volume at 03:30 with the server held still. Plain garbage-collect: what the mesh keeps is still a manifest, so --delete-untagged is not needed and would delete images machines are running. --- modules/distribution/module.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/modules/distribution/module.json b/modules/distribution/module.json index 1da7c8f..3a7c85f 100644 --- a/modules/distribution/module.json +++ b/modules/distribution/module.json @@ -59,6 +59,26 @@ ], "volumes": [ "/var/lib/mesh-registry:/var/lib/registry" + ], + "env": { + "REGISTRY_STORAGE_DELETE_ENABLED": "true" + } + }, + { + "id": "collect", + "type": "container", + "name": "mesh-registry-collect", + "image": "registry@sha256:a3d8aaa63ed8681a604f1dea0aa03f100d5895b6a58ace528858a7b332415373", + "volumes": [ + "/var/lib/mesh-registry:/var/lib/registry" + ], + "args": [ + "garbage-collect", + "/etc/docker/registry/config.yml" + ], + "schedule": "30 3 * * *", + "while-stopped": [ + "store" ] } ]