Mercurial > public > ssdt-docker
comparison scripts/capture.sh @ 71:b6fe4a2411ee
restructure to handle xarg replacement
author | smith@nwoca.org |
---|---|
date | Fri, 18 Mar 2016 01:32:43 +0100 |
parents | b55117e40cd7 |
children | 6f562946db80 |
comparison
equal
deleted
inserted
replaced
70:b55117e40cd7 | 71:b6fe4a2411ee |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 # writes current logs to standard outfrom running containers in current compose project. | 2 # writes tail of current logs to standard out from running containers in compose project. |
3 docker-compose ps -q | xargs -I{} bash -c "cat $(docker inspect --format='{{.LogPath}}' {} ) " | 3 docker-compose ps -q | xargs -I ID docker inspect --format='{{.LogPath}}' ID | xargs tail -n1000 |