Don't care about non existing containers when rebuilding
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adam Štrauch 2022-04-21 22:31:58 +02:00
parent 3f1a0d9a8a
commit 35a0c5acd1
Signed by: cx
GPG Key ID: 018304FFA8988F8D

View File

@ -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
} }