title: An easy way to figure out why a docker container keep restarting
body: <p>I have a docker container which keeps restarting;</p>
  <pre><code>           Name                         Command                 State                  Ports
  --------------------------------------------------------------------------------------------------------
  wenotecloudstorage_flask_1   /bin/sh -c /usr/local/bin/ ...   Restarting
  wenotecloudstorage_nginx_1   nginx -g daemon off;             Up           0.0.0.0:2083-&gt;443/tcp, 80/tcp
  </code></pre>
  <p>I wish I had an easy way to look at the error log on why it is restarting.</p>
  <p>I read on <a href="https://stackoverflow.com/questions/37471929/docker-container-keeps-on-restarting-again-on-again">Docker: Container keeps on restarting again on again</a></p>
  <p>I try;</p>
  <pre><code>docker logs --tail 50 --follow --timestamps wenotecloudstorage_flask_1
  error from daemon in stream: Error grabbing logs: EOF
  </code></pre>
  <p>Is there an easy way that I can figure out the reason why a docker container keeps restarting?</p>