docker stats
gives a good overview of the cpu/mem/net io/disk io as text.
Does there exist a htop
like monitor that shows the docker stats?
Same questino posted in DevOps sister site here
** Suggested answer **
ctop
at https://github.com/bcicen/ctop
If you need more detailed information about a container's resource usage, use the /containers/(id)/stats API endpoint. On Linux, the Docker CLI reports memory usage by subtracting cache usage from the total memory usage.
You can look it up with docker inspect or docker ps --no-trunc . Putting everything together to look at the memory metrics for a Docker container, take a look at the following paths: /sys/fs/cgroup/memory/docker/<longid>/ on cgroup v1, cgroupfs driver. /sys/fs/cgroup/memory/system.
Docker uses namespaces with cgroups , to achieve the said isolation. Adding this feature has enabled Docker to graduate "rootless" to a fully supported feature. Rootless mode facilitates running the entire Docker environment without root system privileges.
Maybe you are looking for docker top
see the doc https://docs.docker.com/engine/reference/commandline/top/ you can use the same options as for ps
so you may have details
An example:
docker top mycontainerid o pid cmd
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With