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
| #!/usr/bin/env bash | |
| # Log performance of containers running in docker | |
| # Repeatedly runs 'docker compose stats' and logs cpu usage to a file | |
| # To be run from a directory containing a docker-compose.yml file while the containers are running. | |
| # | |
| # Prereq: | |
| # docker compose up -d | |
| # | |
| # Usage: |