Skip to content

Instantly share code, notes, and snippets.

@gchait
Created February 6, 2026 11:52
Show Gist options
  • Select an option

  • Save gchait/04e688f96cd53917473ca3e6d28ef756 to your computer and use it in GitHub Desktop.

Select an option

Save gchait/04e688f96cd53917473ca3e6d28ef756 to your computer and use it in GitHub Desktop.
Quickly analyze basic stats of a Docker Server
#!/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