From f03ebc20aa33dbb9b468fe476ce26467eb328060 Mon Sep 17 00:00:00 2001 From: "Guillaume J. Charmes" Date: Thu, 13 Jun 2013 18:42:27 -0700 Subject: [PATCH] Fix issue with ADD --- buildfile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildfile.go b/buildfile.go index 36fbf7c4da..2b29a46b1f 100644 --- a/buildfile.go +++ b/buildfile.go @@ -221,6 +221,7 @@ func (b *buildFile) CmdAdd(args string) error { cmd := b.config.Cmd b.config.Cmd = []string{"/bin/sh", "-c", fmt.Sprintf("#(nop) ADD %s in %s", orig, dest)} + b.config.Image = b.image // Create the container and start it container, err := b.builder.Create(b.config) if err != nil { @@ -297,7 +298,6 @@ func (b *buildFile) commit(id string, autoCmd []string, comment string) error { } else { utils.Debugf("[BUILDER] Cache miss") } - container, err := b.builder.Create(b.config) if err != nil { return err