Redirect "docker logs" output to file

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