Mercurial > public > ssdt-docker
comparison scripts/capture.sh @ 112:a2054815e873
complete merge
author | smith@nwoca.org |
---|---|
date | Mon, 24 Apr 2017 15:41:45 +0100 |
parents | 8f45c43ea7a4 |
children | 303259c08b7d |
comparison
equal
deleted
inserted
replaced
103:5e3cf6b7e331 | 112:a2054815e873 |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 # writes tail of current logs to standard out from running containers in compose project. | 2 # writes tail of current logs to standard out from containers in compose project. |
3 docker-compose ps -q | xargs -I ID docker inspect --format='{{.LogPath}}' ID | xargs tail -n${1-8000} | 3 docker-compose logs --no-color $1 |