mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-09-02 05:37:51 +00:00
Merge pull request #15654 from tyler92/fix-ctr-remove-after-power-off
fix Pod removal after OS hard shutdown
This commit is contained in:
commit
ea3e7ef073
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue