2021-06-14 07:45:19 +00:00
---
title: Using docker
---
2022-03-11 12:37:19 +00:00
```Shell
2021-06-14 07:45:19 +00:00
docker run \
-e PROMETHEUS_PVE_SD_LOG_LEVEL=info \
-e PROMETHEUS_PVE_SD_LOG_FORMAT=console \
-e PROMETHEUS_PVE_SD_OUTPUT_FILE=/out/pve.json \
-e PROMETHEUS_PVE_SD_SERVICE=false \
-e PROMETHEUS_PVE_SD_PVE_SERVER=pve.example.com \
-e PROMETHEUS_PVE_SD_PVE_USER=root \
-e PROMETHEUS_PVE_SD_PVE_PASSWORD=secure \
-e PY_COLORS=1 \
-v $(pwd):/out \
thegeeklab/prometheus-pve-sd
2022-03-11 12:37:19 +00:00
```
2021-06-14 07:45:19 +00:00
2022-05-02 19:51:53 +00:00
{{< hint type = note > }}
2021-06-14 07:45:19 +00:00
Keep in mind, that you have to pass SELinux labels (:Z or :z) to your mount option if you are working on SELinux enabled systems.
{{< / hint > }}
2022-03-11 12:37:19 +00:00
After configuring and starting the service, Prometheus need to be [configured ](/usage/getting-started/#prometheus-configuration ) to use the external service discovery.