Skip to content

Commit

Permalink
Merge pull request #1547 from crazy-max/fix-rm
Browse files Browse the repository at this point in the history
rm: do not check for context builders when removing inactive
  • Loading branch information
crazy-max authored Jan 24, 2023
2 parents db72d0c + 6cd0c11 commit 9723f4f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions commands/rm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9723f4f

Please sign in to comment.