From 5107760aff634422f07b35481d1c9ce2695ac018 Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Jun 04 2019 11:46:22 +0000 Subject: registry sop: Details about the oci-registry-prune playbook Signed-off-by: Clement Verna --- diff --git a/docs/sysadmin-guide/sops/registry.rst b/docs/sysadmin-guide/sops/registry.rst index 8675346..38fec06 100644 --- a/docs/sysadmin-guide/sops/registry.rst +++ b/docs/sysadmin-guide/sops/registry.rst @@ -76,3 +76,13 @@ Logs You can monitor the registry via the systemd journal:: sudo journalctl -f -u docker-distribution + +Running out of disk space +------------------------- + +We have a niagos check that monitors the available disk space on `/srv/registry`. An ansible playbook is available to reclaim some disk space if needed:: + + sudo rbac-playbook manual/oci-registry-prune.yml + +This will delete all the images that are older than 30 days on the candidate registries (prod and stg) and then run the +garbage collection on the registries server.