Correct the docker run volume parameter (#6247)

* Fixes prometheus/docs#1418

Signed-off-by: Matt Russi <mattrussi@users.noreply.github.com>
This commit is contained in:
mattrussi 2019-11-02 06:49:36 -04:00 committed by Ben Kochie
parent f17a0e17aa
commit ca9fce46a3

View File

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