diff --git a/pkg/domain/infra/abi/system_linux.go b/pkg/domain/infra/abi/system_linux.go index 1cfbef3ab2..da16961e69 100644 --- a/pkg/domain/infra/abi/system_linux.go +++ b/pkg/domain/infra/abi/system_linux.go @@ -83,7 +83,7 @@ func (ic *ContainerEngine) SetupRootless(_ context.Context, noMoveProcess bool, return err } - paths := []string{} + paths := make([]string, 0, len(ctrs)) for _, ctr := range ctrs { paths = append(paths, ctr.ConfigNoCopy().ConmonPidFile) }