diff --git a/pkg/domain/infra/abi/containers.go b/pkg/domain/infra/abi/containers.go index b6a7baa04d..0a0dbe3357 100644 --- a/pkg/domain/infra/abi/containers.go +++ b/pkg/domain/infra/abi/containers.go @@ -467,6 +467,7 @@ func (ic *ContainerEngine) ContainerRm(ctx context.Context, namesOrIds []string, errMap, err := parallelctr.ContainerOp(ctx, libpodContainers, func(c *libpod.Container) error { mapMutex.Lock() if _, ok := ctrsMap[c.ID()]; ok { + mapMutex.Unlock() return nil } mapMutex.Unlock()