title: How to do a Docker healthcheck with wget instead of curl?
body: <p>Docker <a href="https://docs.docker.com/engine/reference/builder/#healthcheck" rel="noreferrer">healthcheck document</a> shows this for curl: </p>
  
  <pre><code>HEALTHCHECK --interval=5m --timeout=3s \
    CMD curl -f http://localhost/ || exit 1 
  </code></pre>
  
  <p>I want a one-line equivalent in wget that would exit 1 when HTTP 200 is not returned.</p>