title: How to tail docker into jq?
body: <p>I'm trying to pipe json logs from docker into <code>jq</code>.
  It works fine if I use:</p>
  
  <pre><code>docker logs container_id 2&gt;&amp;1 | jq '.'
  </code></pre>
  
  <p>But, if I try to tail it, it gets stuck (displaying nothing).</p>
  
  <pre><code>docker logs -f container_id 2&gt;&amp;1 | jq '.'
  </code></pre>
  
  <p>While tailing by itself does work:</p>
  
  <pre><code>docker logs -f container_id 2&gt;&amp;1
  </code></pre>
  
  <p>What am I missing here?</p>