Last active
August 29, 2015 14:02
-
-
Save tlrobinson/a8529a742f7b01b38029 to your computer and use it in GitHub Desktop.
CLI: tail all Docker processes' logs with pretty colored labels and timestamps, using Foreman
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
docker inspect --format='{{.Name}}' $(docker ps -q | xargs) | \ | |
sed 's/[^a-zA-Z0-9-]//' | \ | |
awk '{ printf "%s: docker logs -f %s\n", $1, $1 }' | \ | |
foreman start -f /dev/stdin |
Author
tlrobinson
commented
Jun 11, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment