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

Need one help. I have installed the Vagrant to test knife tool. vagrant status
Current machine states:

web1 running (virtualbox)
web2 running (virtualbox)
load-balancer running (virtualbox)

knife bootstrap localhost -p 2222 --connection-user vagrant -i .vagrant/machines/web1/virtualbox/private_key --sudo -N web1

Connecting to localhost using ssh
ERROR: Connection refused connecting to https://localhost/nodes/web1, retry 1/5
ERROR: Connection refused connecting to https://localhost/nodes/web1, retry 2/5
Check your knife configuration and network settings

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 && echo $TZ > /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.