I had the same issue where containers are exiting the moment they are created. It was because of permission issue to the directory where Prometheus is writing data to.
On Sunday, September 6, 2020, babis kagelidis <[email protected]> wrote: > Hello , i try to run prometheus on docker with this command : > > sudo docker run -d --name prometheus-server -p 9090:9090 \ > -v /home/mccdev/prometheus/prometheus/prometheus.yml:/prometheus.yml \ > prom/prometheus \ > --config.file=/prometheus.yml > > but container is always exited immediatelly and i have no access to > localhost:9090. > > What can i do to set container to 'up'? > > -- > You received this message because you are subscribed to the Google Groups > "Prometheus Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/prometheus-users/dbe8d871-d3c4-43ae-b6bc- > d90104f5d84cn%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/dbe8d871-d3c4-43ae-b6bc-d90104f5d84cn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAOnWYZUCpbTW2b6KhJFT561kAXsELcvqawoCZkVx_VA4iyi7Jw%40mail.gmail.com.

