We have currently 9 static agents on our Jenkins controller, and all are identical along with labels as “docker”.
All the linux agents are installed with docker has capacity of 16 CPU Cores | 640 GB Storage|32 GB RAM |1 Volume
Problem: /var/lib/docker/overlay folder gets filled up every single day disturbing our builds and also conflicting networks. We also have cron setup to do regular cleanup using docker system prune but that is also not helping much.
We also tried to leverage mapping of var/lib/docker to external volume that also is getting filled up very fast. Seeking your advise to fix the issue.
Note : Even though we perform docker system prune we see lot of older files like tar files,image layers,build cache are there in overlay folder which are 2 years old. In this case system prune is not working.
Should we need to execute : /usr/bin/docker system prune -
Is there any specific difference between docker system prune & /usr/bin/docker system prune -