Skip to content

Create lifecycle for docker images and containers on runner-01-inf-ops

The runner-01-inf-ops runner has a lot of disk space that is consumed by docker images/containers/volumes/etc.

We should add some cron jobs to perform routine clean-ups on these resources to keep the node operating with plenty of disk space for new images, etc.

Minimum DOD:

  • A weekly cron job to clean up dangling images docker image prune

Nice to have DOD:

  • A more elaborate cron job that also cleans up images not attached to containers, old containers, old volumes, and old networks.
  • Consider moving /var/lib/docker to it's own filesystem to prevent this disk usage from endangering the node's root filesystem.