Remove files out of the container

I use an application inside a container and it accesses files stored outside the container through a Docker volume with the aufs drive.

If I remove the files straight from the HD (out of the container), the files are deleted. However, the "df -h" command shows that the partition continues with that space in use. Disk space is only effectively released after I restart the container running the application.

Has anyone experienced this and knows how to help? It is bad to have to restart the containers in the production environment after deleting some file used by an application inside the container.



comments powered by Disqus