title: Can't load prometheus.yml config file with docker (prom/prometheus)
body: <p>I am trying to load prometheus with docker using the following custom conf file: <i><b>danilo@machine:/prometheus-data/prometheus.yml</b></i>:</p>
  <pre class="lang-yaml prettyprint-override"><code>global:
    scrape_interval:     15s # By default, scrape targets every 15 seconds.
  
    # Attach these labels to any time series or alerts when communicating with
    # external systems (federation, remote storage, Alertmanager).
    external_labels:
      monitor: 'codelab-monitor'
  
    # A scrape configuration containing exactly one endpoint to scrape:
    # Here it's Prometheus itself.
  scrape_configs:
    # The job name is added as a label `job=&lt;job_name&gt;` to any timeseries scraped from this config.
    - job_name: 'prometheus'
  
      # Override the global default and scrape targets from this job every 5 seconds.
      scrape_interval: 5s
  
      static_configs:
        - targets: ['localhost:9090']
  
        - targets: ['localhost:8083', 'localhost:8080']
          labels: my_app
        group: 'my_app_group'
  </code></pre>
  <p>With the following command:</p>
  <pre class="lang-sh prettyprint-override"><code>$ sudo docker run -p 9090:9090 prom/prometheus --config.file=/prometheus-
    data/prometheus.yml
  </code></pre>
  <p>The file already exists. However, I am getting the following message:</p>
  <blockquote>
  <p>level=error ts=2018-09-26T17:45:00.586704798Z caller=main.go:617 err=&quot;error loading config from &quot;/prometheus-data/prometheus.yml&quot;: couldn't load configuration (--config.file=&quot;/prometheus-data/prometheus.yml&quot;): open /prometheus-data/prometheus.yml: no such file or directory&quot;</p>
  </blockquote>
  <p>I'm following this guide:</p>
  <ul>
  <li><a href="https://prometheus.io/docs/prometheus/latest/installation/" rel="nofollow noreferrer">https://prometheus.io/docs/prometheus/latest/installation/</a></li>
  </ul>
  <p>What can I do to load this file correctly?</p>