comparison scripts/capture.sh @ 67:a1907dab3f65

add script to capture log files from compose containers
author smith@nwoca.org
date Fri, 18 Mar 2016 01:10:46 +0100
parents scripts/d-ps.sh@e155908fa039
children 2418f77afad2
comparison
equal deleted inserted replaced
66:1988f9924439 67:a1907dab3f65
1 #!/bin/bash
2 # writes current logs to standard outfrom running containers in current compose project.
3 docker-compose ps -q | xargs -i ID cat $(docker inspect --format='{{.LogPath}}' ID )