title: Cannot start service prometheus: oci runtime error: container_linux.go:235: starting container process caused "container init exited prematurely"
body: <p>Where am I going wrong when running this compose?</p>
  <p>I would just like to upload this container with compose using persistent volume</p>
  <blockquote>
  <p>Compose:</p>
  </blockquote>
  <pre><code>version: '3.1'
  
  services:
    prometheus:
      image: prom/prometheus
      container_name: meta_prometheus
      volumes:
        - ./config:/etc/prometheus/prometheus.yml 
        - ./data:/prometheus/data
      command:
        - '--config.file=/etc/prometheus/prometheus.yml'
        - '--storage.tsdb.path=/prometheus/data'
      ports:
        - 9090:9090
  </code></pre>
  <blockquote>
  <p>Console:</p>
  </blockquote>
  <pre><code>[root@prometheus docker]# docker-compose up -d
  Creating meta_prometheus ... error
  
  ERROR: for meta_prometheus  Cannot start service prometheus: oci runtime error: container_linux.go:235: starting container process caused &quot;container init exited prematurely&quot;
  
  
  ERROR: for prometheus  Cannot start service prometheus: oci runtime error: container_linux.go:235: starting container process caused &quot;container init exited prematurely&quot;
  
  ERROR: Encountered errors while bringing up the project.
  </code></pre>