| ... | ... |
@@ -298,8 +298,6 @@ func (b *buildFile) commit(id string, autoCmd []string, comment string) error {
|
| 298 | 298 |
} |
| 299 | 299 |
|
| 300 | 300 |
func (b *buildFile) Build(dockerfile, context io.Reader) (string, error) {
|
| 301 |
- defer b.clearTmp(b.tmpContainers, b.tmpImages) |
|
| 302 |
- |
|
| 303 | 301 |
if context != nil {
|
| 304 | 302 |
name, err := ioutil.TempDir("/tmp", "docker-build")
|
| 305 | 303 |
if err != nil {
|
| ... | ... |
@@ -350,9 +348,6 @@ func (b *buildFile) Build(dockerfile, context io.Reader) (string, error) {
|
| 350 | 350 |
fmt.Fprintf(b.out, "Build successful.\n===> %s\n", b.image) |
| 351 | 351 |
return b.image, nil |
| 352 | 352 |
} |
| 353 |
- for i := range b.tmpContainers {
|
|
| 354 |
- delete(b.tmpContainers, i) |
|
| 355 |
- } |
|
| 356 | 353 |
return "", fmt.Errorf("An error occured during the build\n")
|
| 357 | 354 |
} |
| 358 | 355 |
|