comparison Sphinx/source/users/advanced-rest.rst @ 363:9c28eeab2db6

removed sudo from docker
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 31 Mar 2020 17:27:55 +0200
parents 9acb9354da1a
children 6d7a36447e21
comparison
equal deleted inserted replaced
362:022d59428ea3 363:9c28eeab2db6
270 Obviously, make sure to adapt this sample with your actual IP 270 Obviously, make sure to adapt this sample with your actual IP
271 address. Thanks to Docker, you can easily start a Prometheus server by 271 address. Thanks to Docker, you can easily start a Prometheus server by
272 writing this configuration to, say, ``/tmp/prometheus.yml``, then 272 writing this configuration to, say, ``/tmp/prometheus.yml``, then
273 type:: 273 type::
274 274
275 $ sudo docker run -p 9090:9090 -v /tmp/prometheus.yml:/etc/prometheus/prometheus.yml --rm prom/prometheus:v2.7.0 275 $ sudo run -p 9090:9090 -v /tmp/prometheus.yml:/etc/prometheus/prometheus.yml --rm prom/prometheus:v2.7.0