Merge pull request #1547 from crazy-max/fix-rm

rm: do not check for context builders when removing inactive
pull/1549/head
CrazyMax 2 years ago committed by GitHub
commit 9723f4f76c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -141,9 +141,6 @@ func rmAllInactive(ctx context.Context, txn *store.Txn, dockerCli command.Cli, i
if err != nil {
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 {
return nil
}

Loading…
Cancel
Save