add periodic cleanup of docker registry vm [ci skip]

This commit is contained in:
Viktor Barzin 2025-12-28 20:37:23 +00:00
parent cd3f7b9cd6
commit a3682bca61
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
2 changed files with 1 additions and 0 deletions

View file

@ -225,6 +225,7 @@ module "docker-registry-template" {
)
)
),
"( crontab -l 2>/dev/null; echo '0 3 * * 0 /usr/bin/docker exec registry registry garbage-collect /etc/docker/registry/config.yml' ) | crontab -",
"docker run -p 5000:5000 -p 5001:5001 -d --restart always --name registry -v /etc/docker-registry/config.yml:/etc/docker/registry/config.yml registry:2"
]
}

Binary file not shown.