mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
* Builder: keep temporary images after a build fails, to allow caching
This commit is contained in:
parent
4205b6bb1d
commit
c903a6baf8
1 changed files with 0 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue