Fix registry container name in pruning cron job

At some point docker compose changed the format of the container name
for our registry. That meant the revert pulled up the old format which
results in failures of this sort:

  Error response from daemon: No such container: registrydocker_registry_1

Update the name in the cronjob to the one currently reported by
`docker ps` to fix this.

Change-Id: I0f997d733084025535746f69685b319c86bb3f41
This commit is contained in:
Clark Boylan 2024-11-25 08:30:13 -08:00
parent f4ab273321
commit 6c10009e39

View File

@ -88,7 +88,7 @@
name: "docker registry garbage-collect"
minute: "0"
hour: "0"
job: "/usr/bin/docker exec registrydocker_registry_1 zuul-registry prune >> /var/log/registry-prune/prune.log 2>&1"
job: "/usr/bin/docker exec registry-docker_registry_1 zuul-registry prune >> /var/log/registry-prune/prune.log 2>&1"
- name: Install logrotate rules
include_role: