title: How to get version of node from docker container?
body: <p>To <a href="https://stackoverflow.com/questions/14888471/node-js-version-on-the-command-line-not-the-repl">get</a> a node version - I expect to run the following:</p>
  
  <pre><code>node --version
  </code></pre>
  
  <p>I'm running the following with docker:</p>
  
  <pre><code>docker run node:4-onbuild -v
  </code></pre>
  
  <p>I get this:</p>
  
  <pre><code>docker: Error response from daemon: Container command '--version' not found or does not exist..
  </code></pre>
  
  <p>My question is: <strong>How to get version of node from docker container?</strong></p>