Skip to content

Instantly share code, notes, and snippets.

@joshuacook
Created November 5, 2018 23:53
Show Gist options
  • Save joshuacook/af8fb7654984cab509ce4b4b63e12b4c to your computer and use it in GitHub Desktop.
Save joshuacook/af8fb7654984cab509ce4b4b63e12b4c to your computer and use it in GitHub Desktop.
Write the Output of docker stats to a file
while true; do docker stats --format "{{.Container}}\t{{.CPUPerc}}\t{{.MemUsage}}" >> stats.txt; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment