runtime: drop spurious message log
fix a regression introduced by
@@ -439,10 +439,13 @@ func (r *Runtime) removeContainer(ctx context.Context, c *Container, force bool,
}
} else {
if err := r.state.RemoveContainer(c); err != nil {
+ if cleanupErr == nil {
cleanupErr = err
- }
+ } else {
logrus.Errorf("removing container: %v", err)
}
+ }
+ }
// Set container as invalid so it can no longer be used
c.valid = false
