mirror of
https://github.com/prometheus/prometheus
synced 2024-12-26 00:23:18 +00: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:
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user