From ca9fce46a32be7da4e572dd85f09e6e7e96ce10b Mon Sep 17 00:00:00 2001 From: mattrussi Date: Sat, 2 Nov 2019 06:49:36 -0400 Subject: [PATCH] Correct the docker run volume parameter (#6247) * Fixes prometheus/docs#1418 Signed-off-by: Matt Russi --- docs/installation.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index a4210842b..0c62b4670 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -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