Created
February 6, 2026 11:52
-
-
Save gchait/04e688f96cd53917473ca3e6d28ef756 to your computer and use it in GitHub Desktop.
Quickly analyze basic stats of a Docker Server
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
| #!/bin/bash -eu | |
| sudo fastfetch --logo none -s \ | |
| 'Separator:LocalIp:OS:Host:Kernel:Uptime:Separator:CPU:CPUUsage:Loadavg:Separator:Memory:Disk:Separator:Processes' | |
| printf "Docker Volumes: " | |
| sudo docker volume ls | wc -l | |
| echo | |
| sudo docker stats --no-stream --format \ | |
| 'table {{.ID}}\t{{printf "%.16s" .Name}}\t{{.CPUPerc}}\t{{.MemPerc}}\t{{.NetIO}}\t{{.BlockIO}}\t{{.PIDs}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment