How to Monitor Container Memory and CPU Usage in Docker Desktop

December 8, 2025 · 506 words · 3 min

Docker has a built-in stats command that makes it simple to see the amount of resources your contain

Docker has a built-in stats command that makes it simple to see the amount of resources your containers are using. Just drop in your CLI and you’ll get a read out of the CPU, memory, network, and disk usage for all your running containers. But this command only gives you a current moment in time. 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%? With the , you can get a clearer view of your usage and the ability to analyze the data for better insights. Let’s take a look at how it works. Using Docker’s stats command, you get a live view of the resources used by your containers. Every running container can be analyzed using this tool to determine its CPU, memory, network, and disk utilization. To use the command, open a terminal and run the command: You can find out more about this command in the . Docker stats is a useful command that provides information about the resources your containers are using at a given point in time. But that’s all it does. 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. 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. With the Resource Usage extension, you can quickly: The cards at the top top of the extension give you a quick global overview of the resources in use:  The Table view shows the details for your containers. You can customize the view by selecting which columns you want to display and which values you want to filter. Here are the available columns: The Chart view provides a visual representation of usage over time. The Resource Usage extension is available on and under . The Resource Usage extension helps you get powerful insights into how your containers are using resources so it’s easier and simpler to optimize your containers. Once you’ve tried it, we’d love to hear . And if you haven’t tried Docker Extensions, explore the and install a few! They expand your Docker Desktop capabilities with new tooling, like the ability to reclaim disk space used by Docker, explore logs, or backup, restore, and share volumes.  You can even create your own Docker Extensions for all OSes, including Windows, WSL2, macOS (both Intel and Apple Silicon), and Linux. Take a look at the for our Extensions SDK. You’ll find tutorials, design guidelines, and everything else you need to build an extension. Once you’ve created an extension, if you’d like to share your extension with the Docker Community, to the Extensions Marketplace.