changeset 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 1988f9924439
children 2418f77afad2
files scripts/capture.sh
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/capture.sh	Fri Mar 18 01:10:46 2016 +0100
@@ -0,0 +1,3 @@
+#!/bin/bash
+# writes current logs to standard outfrom running containers in current compose project.
+docker-compose ps -q | xargs -i ID  cat $(docker inspect --format='{{.LogPath}}' ID )