Installation | Prometheus
prometheus.io › docs › prometheusBind-mount your prometheus.yml from the host by running: docker run \ -p 9090:9090 \ -v /path/to/prometheus.yml:/etc/prometheus/prometheus.yml \ prom/prometheus. Or bind-mount the directory containing prometheus.yml onto /etc/prometheus by running:
Getting started | Prometheus
https://prometheus.io/docs/prometheusStarting Prometheus. To start Prometheus with your newly created configuration file, change to the directory containing the Prometheus binary and run: # Start Prometheus. # By default, Prometheus stores its database in ./data (flag --storage.tsdb.path). ./prometheus --config.file=prometheus.yml.