How to identify which docker container is consuming 100% CPU

Deutsch English

htop process list sorted by CPU consumption showing process with 100 percent CPU usage

find_high_cpu_container.sh
docker inspect -f '{{.State.Pid}}, {{.Name}}' $(docker ps -q)
high_cpu_container_output.txt
8599, /wordpress-myblog-btronik_mariadb_1

Now you know which container is consuming 100% CPU.


Check out similar posts by category: Docker