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
I apologize in advance for my lack of knowledge here but I am trying to do a POC to gather stats about a container within the container and was hoping to use this library to do so but looking at the load function it seems to reference that I need a specific cgroup to load:
// Load will load an existing cgroup and allow it to be controlled
// All static path should not include `/sys/fs/cgroup/` prefix, it should start with your own cgroups name
func Load(path Path, opts ...InitOpts) (Cgroup, error) {
Inside my container (vanilla alpine) I have just the running process itself so I assumed I could use the root pid (it is running itself) and start inspecting the stats of the cgroup but this is failing out:
I apologize in advance for my lack of knowledge here but I am trying to do a POC to gather stats about a container within the container and was hoping to use this library to do so but looking at the load function it seems to reference that I need a specific cgroup to load:
Inside my container (vanilla alpine) I have just the running process itself so I assumed I could use the root pid (it is running itself) and start inspecting the stats of the cgroup but this is failing out:
Error:
When I inspect the
/proc/1/cgroup
I see this. Does that mean I can't access the cgroup which I am running in?The text was updated successfully, but these errors were encountered: