提交 ca9fce46 编写于 作者: M mattrussi 提交者: Ben Kochie

Correct the docker run volume parameter (#6247)

* Fixes prometheus/docs#1418
Signed-off-by: NMatt Russi <mattrussi@users.noreply.github.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册