Skip to content

Instantly share code, notes, and snippets.

@tlrobinson
Last active August 29, 2015 14:02
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tlrobinson/a8529a742f7b01b38029 to your computer and use it in GitHub Desktop.
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
#!/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
@tlrobinson
Copy link
Author

Screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment