prometheus 配置文件不同步,如果使用文件夹可以同步
docker run -d
--name=prometheus
-p 9090:9090
-v /usr/local/docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
prom/prometheus
- 修改/usr/local/docker/prometheus/prometheus.yml文件权限777即可
docker run -d
--name=prometheus
-p 9090:9090
-v /usr/local/docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
prom/prometheus