mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
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:
parent
f17a0e17aa
commit
ca9fce46a3
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue