Skip to content

Instantly share code, notes, and snippets.

@gelldur
Created April 18, 2020 08:44
Show Gist options
  • Save gelldur/30507c6e1ff81b70ccdc6b7147adb3b4 to your computer and use it in GitHub Desktop.
Save gelldur/30507c6e1ff81b70ccdc6b7147adb3b4 to your computer and use it in GitHub Desktop.
[Grep docker logs] #docker #logs #error #grep
docker logs $container 2>&1 | grep -P "\[(W|E)\]"
Example:
```
04-16 22:04:19.222 [E](StatsApp) Animation has no fills: 1 in 0
04-16 22:27:24.239 [E](StatsApp) Animation has no fills: 1 in 0
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment