This commit changes the way docker build cleans up containers. Containers get cleaned up right away after they've been committed and they've become an image. When the build fails, only the last container of the failing step is left behind. Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack) Upstream-commit: 7931be5cba784b36a145af7ed0153ade6474dabd Component: engine