open-contracting / deploy

Deployment configuration and scripts
https://ocdsdeploy.readthedocs.io/en/latest/
Apache License 2.0
2 stars 3 forks source link

Regular Docker clean-up #511

Open RobHooper opened 1 week ago

RobHooper commented 1 week ago

Yesterday we had an ocp24 low disk space alert, while investigating I found that Docker had old, redundant container images dating back 9 months using most of the servers disk space. To prevent this issue in the future we should configure the below command to run regularly on all Docker servers.

docker system prune -a -f 

The docs will also need updating as we will be automating this task: https://ocdsdeploy.readthedocs.io/en/latest/maintain/docker.html