mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 05:34:05 -08:00
docs: clarify default Docker command line parameters (#14194)
* docs: clarify default Docker command line parameters Signed-off-by: Rens Groothuijsen <l.groothuijsen@alumni.maastrichtuniversity.nl> * docs: move Docker command line parameters section and refer to Dockerfile Signed-off-by: Rens Groothuijsen <l.groothuijsen@alumni.maastrichtuniversity.nl> * Add link to Dockerfile in documentation Co-authored-by: Ayoub Mrini <ayoubmrini424@gmail.com> Signed-off-by: Rens Groothuijsen <l.groothuijsen@alumni.maastrichtuniversity.nl> --------- Signed-off-by: Rens Groothuijsen <l.groothuijsen@alumni.maastrichtuniversity.nl> Co-authored-by: Ayoub Mrini <ayoubmrini424@gmail.com>
This commit is contained in:
parent
10a3c7220b
commit
19fd5212c3
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue