I acknowledge that besides an amount of CPU used by container alone, there is a marginal CPU used by other Docker services such as Dockerd, Docker-client, Containerd. But how can I measure them?
I can track down these processes using Top which showed that Dockerd CPU usage jump up or jump down unpredictable.
Moreover, it seems the more number of containers I run, the bigger CPU usage by Dockerd.
If so, is there an approximate number of Dockerd CPU usage per container?
or could anyone show me a way to measure them properly?
PS: I know docker-stats
could give us some resources parameter including CPU, but it doesn't show CPu usage by Dockerd
and Docker-client
, or I am mistaken?