You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The output of Docker Stats API varies depending on the version of cgroup used by Docker Engine.
Especially, Stats.MemoryStats.Stats for cgroup2 host much differ from the one of cgroup.
Docker Engine 20.10.0+ supports cgroup2 and uses it by default.
(cf. https://docs.docker.com/engine/release-notes/#20100 )
The output of Docker Stats API varies depending on the version of cgroup used by Docker Engine.
Especially,
Stats.MemoryStats.Stats
for cgroup2 host much differ from the one of cgroup.(definition for cgroup v1)
https://github.com/moby/moby/blob/548614694305d10e25665b4a7d0f61b025d47dd1/daemon/daemon_unix.go#L1439-L1470
(definition for cgroup v2)
https://github.com/moby/moby/blob/548614694305d10e25665b4a7d0f61b025d47dd1/daemon/daemon_unix.go#L1544-L1577
Currently,
Stats
(https://github.com/fsouza/go-dockerclient/blob/main/container_stats.go#L26) struct has only fields for cgroup v1, so it would be better to add the fields for cgroup v2 as well.https://github.com/fsouza/go-dockerclient/blob/main/container_stats.go#L26
The text was updated successfully, but these errors were encountered: