docker logs myapp 2>&1 | grep ERROR

Category: Docker

docker logs myapp 2>&1 | grep ERROR

Pipe container logs (stdout+stderr) into grep to filter errors

Pipes container logs into grep to filter for error messages.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.