Feature or enhancement request details
container stats only reports the memory that is being used by the processes in the container, not the amount that the container uses/claims from the host, which can be found by checking the memory used by the corresponding com.apple.Virtualization.VirtualMachine process ( Virtual Machine Service for container-runtime-linux in the Active Monitor).
Obtaining this number is a little cumbersome. I'm using lsof on com.apple.Virtualization.VirtualMachine to see what directory it opens in ~/Library/Application Support/com.apple.container/containers/ to get the container UUID.
Can we add a stable interface to it someway somewhere? Or is there already better ways of accomplishing this?
Code of Conduct
Feature or enhancement request details
container statsonly reports the memory that is being used by the processes in the container, not the amount that the container uses/claims from the host, which can be found by checking the memory used by the correspondingcom.apple.Virtualization.VirtualMachineprocess (Virtual Machine Service for container-runtime-linuxin the Active Monitor).Obtaining this number is a little cumbersome. I'm using
lsofoncom.apple.Virtualization.VirtualMachineto see what directory it opens in~/Library/Application Support/com.apple.container/containers/to get the container UUID.Can we add a stable interface to it someway somewhere? Or is there already better ways of accomplishing this?
Code of Conduct