my container log is 
"level=error ts=2020-09-08T17:06:51.460Z caller=main.go:283 msg="Error 
loading config (--config.file=/prometheus.yml)" err="read /prometheus.yml: 
is a directory"
level=error ts=2020-09-08T17:06:56.878Z caller=main.go:283 msg="Error 
loading config (--config.file=/prometheus.yml)" err="read /prometheus.yml: 
is a directory"
level=error ts=2020-09-08T17:06:59.519Z caller=main.go:283 msg="Error 
loading config (--config.file=/prometheus.yml)" err="read /prometheus.yml: 
is a directory"
level=error ts=2020-09-08T17:07:05.024Z caller=main.go:283 msg="Error 
loading config (--config.file=/prometheus.yml)" err="read /prometheus.yml: 
is a directory"
level=error ts=2020-09-08T17:07:12.431Z caller=main.go:283 msg="Error 
loading config (--config.file=/prometheus.yml)" err="read /prometheus.yml: 
is a directory"
level=error ts=2020-09-08T17:07:18.013Z caller=main.go:283 msg="Error 
loading config (--config.file=/prometheus.yml)" err="read /prometheus.yml: 
is a directory"
level=error ts=2020-09-08T17:07:40.173Z caller=main.go:283 msg="Error 
loading config (--config.file=/prometheus.yml)" err="read /prometheus.yml: 
is a directory"
level=error ts=2020-09-08T17:07:55.992Z caller=main.go:283 msg="Error 
loading config (--config.file=/prometheus.yml)" err="read /prometheus.yml: 
is a directory"
level=error ts=2020-09-08T17:08:19.886Z caller=main.go:283 msg="Error 
loading config (--config.file=/prometheus.yml)" err="read /prometheus.yml: 
is a directory"
level=error ts=2020-09-08T17:08:48.089Z caller=main.go:283 msg="Error 
loading config (--config.file=/prometheus.yml)" err="read /prometheus.yml: 
is a directory"
level=error ts=2020-09-08T17:09:40.235Z caller=main.go:283 msg="Error 
loading config (--config.file=/prometheus.yml)" err="read /prometheus.yml: 
is a directory"
"
what is going wrong?

Στις Τρίτη, 8 Σεπτεμβρίου 2020 στις 7:31:52 π.μ. UTC+3, ο χρήστης 
[email protected] έγραψε:

>  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/003870a7-8905-4f6b-adfa-ef471436e059n%40googlegroups.com.

Reply via email to