mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-10-13 23:33:45 +08:00
rm: do not check for context builders when removing inactive
This change has been introduced ine7b5ee7518
but we should not check context builders when removing inactive ones. Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com> (cherry picked from commit6cd0c11ab1
)
This commit is contained in:
@@ -141,9 +141,6 @@ func rmAllInactive(ctx context.Context, txn *store.Txn, dockerCli command.Cli, i
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrapf(err, "cannot load %s", b.Name)
|
return errors.Wrapf(err, "cannot load %s", b.Name)
|
||||||
}
|
}
|
||||||
if cb := b.ContextName(); cb != "" {
|
|
||||||
return errors.Errorf("context builder cannot be removed, run `docker context rm %s` to remove this context", cb)
|
|
||||||
}
|
|
||||||
if b.Dynamic {
|
if b.Dynamic {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user