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:
```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