From 19fd5212c37aba8fb4b0642f9acfdc8c7ccc7681 Mon Sep 17 00:00:00 2001 From: Rens Groothuijsen Date: Mon, 10 Jun 2024 20:16:02 +0200 Subject: [PATCH] docs: clarify default Docker command line parameters (#14194) * docs: clarify default Docker command line parameters Signed-off-by: Rens Groothuijsen * docs: move Docker command line parameters section and refer to Dockerfile Signed-off-by: Rens Groothuijsen * Add link to Dockerfile in documentation Co-authored-by: Ayoub Mrini Signed-off-by: Rens Groothuijsen --------- Signed-off-by: Rens Groothuijsen Co-authored-by: Ayoub Mrini --- docs/installation.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index 28f64c0f95..c8e359e780 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -31,11 +31,19 @@ production deployments it is highly recommended to use a [named volume](https://docs.docker.com/storage/volumes/) to ease managing the data on Prometheus upgrades. -To provide your own configuration, there are several options. Here are -two examples. +### Setting command line parameters + +The Docker image is started with a number of default command line parameters, which +can be found in the [Dockerfile](https://github.com/prometheus/prometheus/blob/main/Dockerfile) (adjust the link to correspond with the version in use). + +If you want to add extra command line parameters to the `docker run` command, +you will need to re-add these yourself as they will be overwritten. ### Volumes & bind-mount +To provide your own configuration, there are several options. Here are +two examples. + Bind-mount your `prometheus.yml` from the host by running: ```bash