diff --git a/libcontainer/cgroups/fs2/memory.go b/libcontainer/cgroups/fs2/memory.go index 1c6913bf0f5..81b28df75a5 100644 --- a/libcontainer/cgroups/fs2/memory.go +++ b/libcontainer/cgroups/fs2/memory.go @@ -88,7 +88,7 @@ func statMemory(dirPath string, stats *cgroups.Stats) error { } stats.MemoryStats.Stats[t] = v } - stats.MemoryStats.Cache = stats.MemoryStats.Stats["cache"] + stats.MemoryStats.Cache = stats.MemoryStats.Stats["file"] memoryUsage, err := getMemoryDataV2(dirPath, "") if err != nil {