Skip to content

Commit

Permalink
Merge pull request containers#15654 from tyler92/fix-ctr-remove-after…
Browse files Browse the repository at this point in the history
…-power-off

fix Pod removal after OS hard shutdown
  • Loading branch information
openshift-merge-robot authored Sep 6, 2022
2 parents db5ec4d + 9585147 commit ea3e7ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpod/runtime_ctr.go
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ func (r *Runtime) removeContainer(ctx context.Context, c *Container, force, remo

// Deallocate the container's lock
if err := c.lock.Free(); err != nil {
if cleanupErr == nil {
if cleanupErr == nil && !os.IsNotExist(err) {
cleanupErr = fmt.Errorf("error freeing lock for container %s: %w", c.ID(), err)
} else {
logrus.Errorf("Free container lock: %v", err)
Expand Down

0 comments on commit ea3e7ef

Please sign in to comment.