Skip to content

Instantly share code, notes, and snippets.

@bobwei
Created January 11, 2018 07:26
Show Gist options
  • Save bobwei/b379b760a2e8db9699ec5f1cbee886e5 to your computer and use it in GitHub Desktop.
Save bobwei/b379b760a2e8db9699ec5f1cbee886e5 to your computer and use it in GitHub Desktop.
export CONTAINER_NAME=
docker stats --format "table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}" $(docker ps --filter=name=${CONTAINER_NAME} -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment