System: long-running container that creates/delete files. Host is a RHEL7.2 (kernel 3.10.0-327.el7.x86_64) machine, with Docer v1.8.2 backed by a “loop-lvm” devicemapper pool.
Symptom: despite the container also deletes files, the available space in the devicemapper pool only shrinks and never increases.
Possible solution: run “fstrim /” from inside the container. Note that this requires you to run it in ‘privileged’ mode.