From 76f6eb3edfcc53db54e375a904fece58dbb45b2f Mon Sep 17 00:00:00 2001 From: nujz Date: Tue, 23 Aug 2022 17:37:47 +0800 Subject: [PATCH] cgroupV1: memory.memsw.usage_in_bytes: no such file or directory --- storage/sealer/cgroups_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/sealer/cgroups_linux.go b/storage/sealer/cgroups_linux.go index 8bee54f78..0edcc9ead 100644 --- a/storage/sealer/cgroups_linux.go +++ b/storage/sealer/cgroups_linux.go @@ -40,7 +40,7 @@ func cgroupV1Mem() (memoryMax, memoryUsed, swapMax, swapUsed uint64, err error) if err != nil { return 0, 0, 0, 0, err } - stats, err := c.Stat() + stats, err := c.Stat(cgroups.IgnoreNotExist) if err != nil { return 0, 0, 0, 0, err }