DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

How to Monitor Container Memory and CPU Usage in Docker Desktop

2 years ago www.docker.com
How to Monitor Container Memory and CPU Usage in Docker Desktop

Summary: This is a summary of an article originally published by the source. Read the full original article here →

Docker has a built-in stats command that makes it simple to see the amount of resources your containers are using. 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.

To use the command, open a terminal and run the docker stats command: $ docker stats CONTAINER CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O redis1 0.07% 796 KB / 64 MB redis2 0.07%

Docker stats is a useful command that provides information about the resources your containers are using at a given point in time.

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.

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com