title: Running Docker Build from Jenkins, replace hardcoded Inputs in Dockerfile with parameters
body: <p>I want to run docker builds from a jenkis server, in case of this I want to specify some Inputs like passwords or path in the dockerfile as variables.</p>
  
  <p>Is there a way to specify parameters for the docker build command and use this parameters as variables? </p>
  
  <p>A case would be the mysql root password. </p>
  
  <pre><code>echo "mysql-server mysql-server/root_password password &lt;&lt;VARIABLE&gt;&gt;" | sudo debconf-set-selections
  echo "mysql-server mysql-server/root_password_again password &lt;&lt;VARIABLE&gt;&gt;" | sudo debconf-set-selections
  </code></pre>
  
  <p>Thanks for your help</p>