From caaea2e08f85438b7a6bee006e803f1c4351c445 Mon Sep 17 00:00:00 2001 From: Solomon Hykes Date: Thu, 30 May 2013 16:24:26 -0700 Subject: [PATCH] * Build: never remove temporary images and containers --- buildfile.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/buildfile.go b/buildfile.go index 81aea513db..d9a4b5eff6 100644 --- a/buildfile.go +++ b/buildfile.go @@ -298,8 +298,6 @@ func (b *buildFile) commit(id string, autoCmd []string, comment string) error { } func (b *buildFile) Build(dockerfile, context io.Reader) (string, error) { - defer b.clearTmp(b.tmpContainers, b.tmpImages) - if context != nil { name, err := ioutil.TempDir("/tmp", "docker-build") if err != nil { @@ -350,9 +348,6 @@ func (b *buildFile) Build(dockerfile, context io.Reader) (string, error) { fmt.Fprintf(b.out, "Build successful.\n===> %s\n", b.image) return b.image, nil } - for i := range b.tmpContainers { - delete(b.tmpContainers, i) - } return "", fmt.Errorf("An error occured during the build\n") }