How to change prometheus docker container time ? I am trying to mount this ``` /etc/localtime:/etc/localtime:ro``` No luck Baseos - CoreOS

How to change prometheus docker container time ?

I am trying to mount this

/etc/localtime:/etc/localtime:ro
No luck

Baseos - CoreOS

What are you trying to achieve?
Prometheus is writing the metrics in UTC. The Browser then can apply timezones on the fly.

hmm, just wanted to keep all the containers time synced with local machine

<@U0194N6EW22>
Try this one…. in you Docker file

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime &amp;&amp; echo $TZ &gt; /etc/timezone```

Otherwise login to the prometheus container set the timezone and log it and create new image from that container.

Timezone doesn’t matter - it’s about the time of the container relative to the host. Am I right?
If that’s the case there is nothing to worry about. The container is using the same clock as the host anyway.