lncm / docker-bitcoind

Flexible multi-arch (amd & amd64) Bitcoin Core Docker image
https://hub.docker.com/r/lncm/bitcoind
MIT License
102 stars 34 forks source link

Include a mechanism to set local timezone #58

Open Goro2030 opened 3 years ago

Goro2030 commented 3 years ago

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.

nolim1t commented 3 years ago

Thanks will consider it in the next build

nolim1t commented 3 years ago

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