
Analyze the most resource-intensive containers or Docker Compose projects.With the Resource Usage extension, you can quickly: The Resource Usage extension shows which containers consume the most resources on their development machines by running the Docker stats command, then compiling the data into a user interface. Before this extension, if you wanted to string together the information over a period of time, you were looking at a fairly manual process of pings and data consolidation. You can find out more about this command in the Docker documentation.ĭocker stats is a useful command that provides information about the resources your containers are using at a given point in time. To use the command, open a terminal and run the docker stats command:ĬONTAINER CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O

Every running container can be analyzed using this tool to determine its CPU, memory, network, and disk utilization. Using Docker’s stats command, you get a live view of the resources used by your containers. With the Resource Usage extension, you can get a clearer view of your usage and the ability to analyze the data for better insights. What if you wanted to see the evolution of the resources over time? Or see how much CPU and memory a Docker Compose project is using? Or sort containers by the most CPU-intensive, then filter by CPU usage over 80%? Just drop $ docker stats in your CLI and you’ll get a read out of the CPU, memory, network, and disk usage for all your running containers.īut this command only gives you a current moment in time.

Docker has a built-in stats command that makes it simple to see the amount of resources your containers are using.
