Commit ca9fce46 authored by mattrussi's avatar mattrussi Committed by Ben Kochie
Browse files

Correct the docker run volume parameter (#6247)



* Fixes prometheus/docs#1418
Signed-off-by: default avatarMatt Russi <mattrussi@users.noreply.github.com>
parent f17a0e17
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment