Docker logs do not show everything when using grep

Docker logs do not show everything when using grep

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!