mirror of https://github.com/docker/buildx.git
rm: remove builder even if driver is not responsive
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
parent
2ad963bcb1
commit
6eeb21f87e
|
@ -27,10 +27,11 @@ func runRm(dockerCli command.Cli, in rmOptions, args []string) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := stop(ctx, dockerCli, ng, true); err != nil {
|
||||
err1 := stop(ctx, dockerCli, ng, true)
|
||||
if err := txn.Remove(ng.Name); err != nil {
|
||||
return err
|
||||
}
|
||||
return txn.Remove(ng.Name)
|
||||
return err1
|
||||
}
|
||||
|
||||
ng, err := getCurrentInstance(txn, dockerCli)
|
||||
|
@ -38,10 +39,11 @@ func runRm(dockerCli command.Cli, in rmOptions, args []string) error {
|
|||
return err
|
||||
}
|
||||
if ng != nil {
|
||||
if err := stop(ctx, dockerCli, ng, true); err != nil {
|
||||
err1 := stop(ctx, dockerCli, ng, true)
|
||||
if err := txn.Remove(ng.Name); err != nil {
|
||||
return err
|
||||
}
|
||||
return txn.Remove(ng.Name)
|
||||
return err1
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue