Skip to content

Instantly share code, notes, and snippets.

@Dylancyclone
Created January 31, 2023 23:08
Show Gist options
  • Save Dylancyclone/38606afa4dd06aa2e2d52daeb3b11bff to your computer and use it in GitHub Desktop.
Save Dylancyclone/38606afa4dd06aa2e2d52daeb3b11bff to your computer and use it in GitHub Desktop.
Follow all docker container logs with container name
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