# HG changeset patch # User smith@nwoca.org # Date 1458261163 -3600 # Node ID b6fe4a2411eee7ba41fdfd2ca9686b541e2d2703 # Parent b55117e40cd7862f995e28aba178568257213c25 restructure to handle xarg replacement diff -r b55117e40cd7 -r b6fe4a2411ee scripts/capture.sh --- a/scripts/capture.sh Fri Mar 18 01:24:12 2016 +0100 +++ b/scripts/capture.sh Fri Mar 18 01:32:43 2016 +0100 @@ -1,3 +1,3 @@ #!/bin/bash -# writes current logs to standard outfrom running containers in current compose project. -docker-compose ps -q | xargs -I{} bash -c "cat $(docker inspect --format='{{.LogPath}}' {} ) " +# writes tail of current logs to standard out from running containers in compose project. +docker-compose ps -q | xargs -I ID docker inspect --format='{{.LogPath}}' ID | xargs tail -n1000 \ No newline at end of file