title: How to override the CMD command in the docker run line
body: <p>How you can replace the cmd based on the docker documentation:
  <a href="https://docs.docker.com/reference/builder/#cmd" rel="nofollow noreferrer">https://docs.docker.com/reference/builder/#cmd</a></p>
  <p>You can override the CMD command</p>
  <p>Dockerfile:</p>
  <pre><code>RUN chmod +x /srv/www/bin/* &amp; chmod -R 755 /srv/www/app
  RUN pip3 install -r /srv/www/app/pip-requirements.txt
  EXPOSE 80
  CMD [&quot;/srv/www/bin/gunicorn.sh&quot;]
  </code></pre>
  <p>the docker run command is:</p>
  <pre><code>docker run --name test test/test-backend
  </code></pre>
  <p>I tried</p>
  <pre><code>docker run --name test test --cmd [&quot;/srv/www/bin/gunicorn.sh&quot;]
  docker run --name test test cmd [&quot;/srv/www/bin/gunicorn.sh&quot;]
  </code></pre>
  <p>But the console say this error:</p>
  <pre><code>System error: exec: &quot;cmd&quot;: executable file not found in $PATH
  </code></pre>