Commit ca9fce46 by mattrussi Committed by Ben Kochie

Correct the docker run volume parameter (#6247)

* Fixes prometheus/docs#1418
Signed-off-by: 's 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
......
Markdown is supported
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