Does the dockerd Process in htop Reflect the Docker Daemon’s Resources or Those of the Containers?
I’m monitoring my system using htop and see processes like:
/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
I want to clarify if I understand correctly that the resources displayed for /usr/bin/dockerd pertain only to the Docker daemon itself, and not to the processes running inside containers. For example, I have a server running inside a container, and it appears as a separate process in the table.
Answers
Laurent Peeters
7 months ago
1 comment
Rating
Your assumption is correct. Such processes belong to the threads or child processes of the Docker daemon that manages the containers. Docker runs containers as isolated processes on the host, so processes inside containers, like your server, will appear in htop as separate entries.
Therefore, the CPU and memory usage you see for dockerd relates solely to Docker itself, while the resources used by containers, such as your server, are displayed independently.
Max Hoffmann
7 months ago
Rating
Thank you for the clarification!
Luc Thomas
7 months ago
1 comment
Rating
Yes, the resources you see for the dockerd processes are the resources consumed by the Docker daemon itself for managing containers. The processes within the containers are displayed separately.
Max Hoffmann
7 months ago
Rating
Thank you for the clarification!