Last active
November 24, 2021 14:21
-
-
Save lcuevastodoit/8f3c7a1704a4a2e083972246bd7ac268 to your computer and use it in GitHub Desktop.
Docker Stats
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Docker Stats | |
docker stats $(docker ps --format '{{.Names}}') | |
docker stats --format "table {{.Name}}\t{{.Container}}\t{{.CPUPerc}}\t{{.MemUsage}}" | |
docker stats --format "table {{.Name}}\t{{.Container}}\t{{.CPUPerc}}\t{{.MemUsage}}" --no-stream | |
docker stats --format "table {{.Name}}\t{{.PIDs}}\t{{.Container}}\t{{.CPUPerc}}\t{{.MemUsage}}" --no-stream | |
docker stats --format "table {{.ID}}\t{{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.MemPerc}}\t{{.NetIO}}\t{{.BlockIO}}\t{{.PIDs}}" --no-stream | |
# CSV | |
docker stats --format "{{.ID}},{{.Name}},{{.PIDs}}" --no-stream | |
# Sort by PIDs | |
docker stats --format "table {{.ID}}\t{{.Name}}\t{{.PIDs}}" --no-stream | sort -k 3 -g -r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment