docker-bitcoind icon indicating copy to clipboard operation
docker-bitcoind copied to clipboard

Include a mechanism to set local timezone

Open Goro2030 opened this issue 4 years ago • 3 comments

It would be great if one could pass the local timezone variable to the container to use, especially handy for the bitcoin debug.log.

For this to work , it requires the tzdata package installed in the image, according to this wiki article.

Then the user would pass an environment variable in compose:

environment:
      - TZ=America/Santiago

or a -e in the docker command line.

Goro2030 avatar Sep 05 '21 00:09 Goro2030

Thanks will consider it in the next build

nolim1t avatar Sep 05 '21 11:09 nolim1t

Or maybe symlinking /etc/localtime might work better too as there would be less moving parts in the container?

nolim1t avatar Sep 05 '21 11:09 nolim1t