Merge pull request #32 from tonistiigi/rm

rm: remove builder even if driver is not responsive
pull/34/head
Tõnis Tiigi 6 years ago committed by GitHub
commit 2b7ed4f4eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -27,10 +27,11 @@ func runRm(dockerCli command.Cli, in rmOptions, args []string) error {
if err != nil { if err != nil {
return err 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 err
} }
return txn.Remove(ng.Name) return err1
} }
ng, err := getCurrentInstance(txn, dockerCli) ng, err := getCurrentInstance(txn, dockerCli)
@ -38,10 +39,11 @@ func runRm(dockerCli command.Cli, in rmOptions, args []string) error {
return err return err
} }
if ng != nil { 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 err
} }
return txn.Remove(ng.Name) return err1
} }
return nil return nil

Loading…
Cancel
Save