如何识别哪个 docker 容器消耗了 100% CPU

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

现在你知道哪个容器消耗了 100% CPU。


Check out similar posts by category: Docker