Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
docker build -rm should be default #4291
When doing docker build, -rm should be default.
When a build fails, the intermediate containers are not removed anyway, so debugging is still possible regardless of -rm's value.
It would also be nice to have an easier way to clean up intermediate containers after debugging is complete.
added a commit
Feb 23, 2014
This has been merged but for anyone running an older version of Docker finding this ticket, it might be useful to have the following command that will delete all intermediary images: