May 28, 2021

How to Delete Anonymous Docker Volumes on Tear Down

On one of our servers, there is a demo application installed for our customers. The application, which consists of two docker images, is managed by a docker-compose.yml file. As the customers are able to change the data, the containers and the attached volume are torn down every night, and then rebuilt. Monitoring made me aware, that we are running low on disk space. Turns out the volumes do not get deleted with the current cronjob:...