title: Can you pass flags to the command that docker runs?
body: <p>The documentation for the <code>run</code> command follows the following syntax:</p>
  
  <pre><code>docker run [OPTIONS] IMAGE[:TAG|@DIGEST] [COMMAND] [ARG...]
  </code></pre>
  
  <p>however I've found at times that I want to pass a flag to <code>[COMMAND]</code>.</p>
  
  <p>For example, I've been working with <a href="https://github.com/makuk66/docker-solr" rel="noreferrer">this image</a>, where the <code>[COMMAND]</code> as specified in the <a href="https://github.com/makuk66/docker-solr/blob/master/5.2/Dockerfile" rel="noreferrer">Dockerfile</a> is:</p>
  
  <pre><code>CMD ["/bin/bash", "-c", "/opt/solr/bin/solr -f"]
  </code></pre>
  
  <p>Is there any way to tack on flags to <code>"/opt/solr/bin/solr -f"</code> so that it's in the form <code>"/opt/solr/bin/solr -f [-MY FLAGS]"</code>?</p>
  
  <p>Do I need to edit the DockerFile or is there some built in functionality for this?</p>