Mercurial > public > ssdt-docker
comparison scripts/capture.sh @ 85:8f45c43ea7a4 feature/djs-DEP-12-docker
DEP-12: start upgrading scripts and compose files for RC and docker 1.12
author | Dave Smith <smith@nwoca.org> |
---|---|
date | Wed, 21 Sep 2016 19:00:41 -0400 |
parents | d2c44193fbaa |
children | 303259c08b7d |
comparison
equal
deleted
inserted
replaced
84:36d4c33e43a3 | 85:8f45c43ea7a4 |
---|---|
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 |