title: How to configure Databricks token inside Docker File
body: <p>I have a docker file where I want to</p>
  <ol>
  <li>Download the Databricks CLI</li>
  <li>Configure the CLI by adding a host and token</li>
  <li>And then running a python file that hits the Databricks token</li>
  </ol>
  <p>I am able to install the CLI in the docker image, and I have a working python file that is able to submit the job to the Databricks API but Im unsure of how to configure my CLI within docker.</p>
  <p>Here is what I have</p>
  <pre><code>FROM python
  MAINTAINER nope
  
  # Creating Application Source Code Directory
  RUN mkdir -p /src
  
  # Setting Home Directory for containers
  WORKDIR /src
  
  # Installing python dependencies
  RUN pip install databricks_cli
  
  # Not sure how to do this part???
  # databricks token kicks off the config via CLI
  RUN databricks configure --token
  
  # Copying src code to Container
  COPY . /src
  
  # Start Container
  CMD echo $(databricks --version)
  
  #Kicks off Pythern Job
  CMD [&quot;python&quot;, &quot;get_run.py&quot;]
  </code></pre>
  <p>If I was to do <code>databricks configure --token</code> in the CLI it would prompt for the configs like this :</p>
  <pre><code>databricks configure --token
  Databricks Host (should begin with https://): 
  </code></pre>