Don't care about non existing containers when rebuilding
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
3f1a0d9a8a
commit
35a0c5acd1
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jinzhu/gorm"
|
"github.com/jinzhu/gorm"
|
||||||
|
@ -460,7 +461,7 @@ func (p *Processor) Rebuild() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
err = container.Destroy()
|
err = container.Destroy()
|
||||||
if err != nil {
|
if err != nil && !strings.Contains(err.Error(), "no container found") {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue