Background : We deployed some springboot applications using docker EE in Windows server 2016. Whenever we do an version upgrade of the application, the disk space is not cleared.
I used the image prune command, and also removed exited containers.
I removed dangling images as well using this command
docker rmi $(docker images --filter “dangling=true” -q --no-trunc)
When the docker containers and images are cleared,the disk space should be cleaned up as well.
The disk space is not freedup and I have to manually run this command to delete all contents in C:\Programdata\docker
robocopy C:\PURGE C:\ProgramData\Docker /PURGE
host distribution and version : Windows Server 2016 LTS
Docker Version : Docker version 17.06.2-ee-10, build 66261a0
Steps to reproduce the behavior
- Pull images
- Start containers
- Stop Containers
4 . Delete images using docker rmi containerid