Docker image larger than its filesystem
<p>I have a docker image that I built from several layers and a debian:jessie base image that I'm working on making smaller. I added a cleanup layer than does <code>apt-get remove</code> a bunch of packages and deletes files from the filesystem. When I run the resulting image and do <code>du -h</code> inside it I can see it's about <code>1.3GB</code>. However, when I look at the image size in <code>docker images</code>, it's more than <code>2.2GB</code>, which is the size of the image before the cleanup layer. Why is the final image not getting smaller?</p>