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
Client:
Version: 17.06.2-ee-10
API version: 1.30
Go version: go1.8.7
Git commit: 66261a0
Built: Fri Apr 27 00:42:30 2018
OS/Arch: windows/amd64
Server:
Engine:
Version: 17.06.2-ee-10
API version: 1.30 (minimum version 1.24)
Go version: go1.8.7
Git commit: 66261a0
Built: Fri Apr 27 00:54:58 2018
OS/Arch: windows/amd64
Experimental: false
I deleted all containers and ran
docker image prune -a
against a 90GB windowsfilter folder, and it recovered only 16GB, leaving a large number of what I can only assume are orphaned image layers behind.
When I look for images (docker image ls -a) or containers (docker container ls -a) no records are returned. See screenshot.
I see the read-only attribute and of course can find a way to purge these, but want to make sure I understand whether or not I’m doing something wrong in my procedures.
My main concern is that development workstations and CI/CD servers will quickly get storage overruns through image build iterations.