From c903a6baf83b4aaa51d7198643e0eef9211c99ed Mon Sep 17 00:00:00 2001 From: Solomon Hykes Date: Thu, 30 May 2013 15:52:09 -0700 Subject: [PATCH] * Builder: keep temporary images after a build fails, to allow caching --- buildfile.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/buildfile.go b/buildfile.go index 3081367719..81aea513db 100644 --- a/buildfile.go +++ b/buildfile.go @@ -347,10 +347,6 @@ func (b *buildFile) Build(dockerfile, context io.Reader) (string, error) { fmt.Fprintf(b.out, "===> %v\n", b.image) } if b.image != "" { - // The build is successful, keep the temporary containers and images - for i := range b.tmpImages { - delete(b.tmpImages, i) - } fmt.Fprintf(b.out, "Build successful.\n===> %s\n", b.image) return b.image, nil }