Skip to content

Instantly share code, notes, and snippets.

@pamtrak06
Forked from fuzzygroup/dockerstats
Created March 30, 2019 21:33
Show Gist options
  • Save pamtrak06/0a67e5a7800d3e1ea1b6a892d8c88a34 to your computer and use it in GitHub Desktop.
Save pamtrak06/0a67e5a7800d3e1ea1b6a892d8c88a34 to your computer and use it in GitHub Desktop.
#!/bin/bash
docker stats --format "table {{.Container}}\t{{.CPUPerc}}\t{{.MemUsage}}" $(docker ps|grep -v "NAMES"|awk '{ print $NF }'|tr "\n" " ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment