Finding a string in docker logs of container
<p>What is the best way to find a specific string in the logs of a docker container? Let's say I want to see all requests, that are made in the "nginx" docker image that came from a ip starting with "127."</p>

<p>grep wont work as expected on docker logs command:</p>

<pre><code>docker logs nginx | grep "127."
</code></pre>

<p>It prints all logs, but does not filter the result!</p>