Browse code

Fix issue with ADD

Guillaume J. Charmes authored on 2013/06/14 10:42:27
Showing 1 changed files
... ...
@@ -221,6 +221,7 @@ func (b *buildFile) CmdAdd(args string) error {
221 221
 	cmd := b.config.Cmd
222 222
 	b.config.Cmd = []string{"/bin/sh", "-c", fmt.Sprintf("#(nop) ADD %s in %s", orig, dest)}
223 223
 
224
+	b.config.Image = b.image
224 225
 	// Create the container and start it
225 226
 	container, err := b.builder.Create(b.config)
226 227
 	if err != nil {
... ...
@@ -297,7 +298,6 @@ func (b *buildFile) commit(id string, autoCmd []string, comment string) error {
297 297
 		} else {
298 298
 			utils.Debugf("[BUILDER] Cache miss")
299 299
 		}
300
-
301 300
 		container, err := b.builder.Create(b.config)
302 301
 		if err != nil {
303 302
 			return err