Docker build support caching if there is no ADD instruction. If you are actively developing and modifying file files, then only after ADD will it be rebuilt.
Starting with 0.6.2 (scheduled today), you can do docker build --rm . and it will remove the temporary containers. It will save images though.
To remove orphaned images, you can check them with docker images and run docker rmi <id> on one of them. At the moment, there is an automatic configuration, and all untagged images (orphans, previous assemblies) will be deleted.
creack Sep 17 '13 at 21:19 2013-09-17 21:19
source share