From 1ff36c63de50737537227bb7c6aaa1b33dd938f4 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Thu, 6 Mar 2025 14:11:37 -0800 Subject: [PATCH] Add info on monitoring usage in container --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index f3c1021..1d0acf7 100644 --- a/README.md +++ b/README.md @@ -84,3 +84,22 @@ The default port for inbound connections is 8888 (see docker-compose.yml). $(pwd)/jupyter is bind mounted to /opt/juypter in the container, which is where notebooks will be saved by default. To access the jupyter notebook, go to `https://localhost:8888/jupyter`. + +### Monitoring + +You can run `ze-monitor` within the launched containers to monitor +GPU usage. + +```bash +containers=($(docker ps --filter "ancestor=airc" --format "{{.ID}}")) +if [[ ${#containers[*]} -eq 0 ]]; then + echo "Running airc container not found." +else + for container in ${containers[@]}; do + echo "Container ${container} devices:" + docker exec -it ${container} ze-monitor + done +fi +``` + +If an airc container is running