Skip to main content

Docker logs do not show everything when using grep

· By Andrej Friesen · 1 min read

I always forget how to pipe stderr to stdout. Especially when going through docker logs I need this all the time.

docker logs nginx 2>&1 | grep "127."

Now I have written this down and I hope I do not to forget this anymore. If so I can still quickly look it up!

About the author

Andrej Friesen Andrej Friesen
Updated on Aug 30, 2021