Created
January 31, 2023 23:08
-
-
Save Dylancyclone/38606afa4dd06aa2e2d52daeb3b11bff to your computer and use it in GitHub Desktop.
Follow all docker container logs with container name
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
docker ps --format='{{.Names}}' | xargs -P0 -d '\n' -n1 sh -c 'docker logs "$1" --follow | sed "s/^/$1: /"' _ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment