title: How to run a command in Docker using custom arguments?
body: <p>How to run a command in Docker using custom arguments?</p>
  
  <p>I'm trying to run a command that causes django to rotate using an environment variable through an argument in the act of creating the server.</p>
  
  <p>Thank you very much for your attention.</p>
  
  <p>I need to run the command in this format to work.</p>
  
  <pre><code># VAR=enviroment_name python manage.py migrate --database=01_sistema
  </code></pre>
  
  <p>docker</p>
  
  <pre><code>docker exec 24e2b5c60a79 VAR=enviroment_name python manage.py migrate --database=01_sistema
  </code></pre>
  
  <p>Error</p>
  
  <blockquote>
    <p>OCI runtime exec failed: exec failed: container_linux.go:344: starting
    container process caused "exec: \"VAR=enviroment_name\": executable
    file not found in $PATH": unknown</p>
  </blockquote>