Zack Williams | 4e5d1d2 | 2016-06-13 11:10:03 -0700 | [diff] [blame] | 1 | #!/usr/bin/env bash |
2 | |||||
3 | mkdir -p ~/docker_logs | ||||
4 | rm -rf ~/docker_logs/* | ||||
5 | |||||
6 | for container in `docker ps --format "{{.Names}}"`; | ||||
7 | do | ||||
8 | docker logs $container > ~/docker_logs/$container.log 2>&1; | ||||
9 | done |