diff --git a/docs/installation.md b/docs/installation.md index a4210842bb9ecba8835b29df6733cbc48021db9e..0c62b46702de5cd13665bb9c67443724efb1e634 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -39,15 +39,19 @@ two examples. Bind-mount your `prometheus.yml` from the host by running: ```bash -docker run -p 9090:9090 -v /tmp/prometheus.yml:/etc/prometheus/prometheus.yml \ - prom/prometheus +docker run \ + -p 9090:9090 \ + -v /tmp/prometheus.yml:/etc/prometheus/prometheus.yml \ + prom/prometheus ``` Or use an additional volume for the config: ```bash -docker run -p 9090:9090 -v /prometheus-data \ - prom/prometheus --config.file=/prometheus-data/prometheus.yml +docker run \ + -p 9090:9090 \ + -v /path/to/config:/etc/prometheus \ + prom/prometheus ``` ### Custom image