title: In Docker, can I use the JSON format for entrypoint from the command line?
body: <p>I want to override the entrypoint of a docker image. </p>
  
  <p>I know I can do this using the <code>--entrypoint</code> option of <code>docker run</code>, but I cannot figure out how to format the argument. I know how to write the entrypoint in the JSON format. It is:</p>
  
  <pre><code>["/usr/bin/python2.7", "startup.py"]
  </code></pre>
  
  <p>I really need this form because I need the CMD arguments to be passed through to the entrypoint, which as I understand happens only in this exec format (and not the shell format). </p>
  
  <p>I have tried:</p>
  
  <pre><code>docker run --entrypoint "/usr/bin/python2.7 startup.py"
  </code></pre>
  
  <p>but that does not work.</p>
  
  <p>What is the right way to do this?</p>