simple-monerod-docker
simple-monerod-docker copied to clipboard
Timezone cannot be set correctly
I am trying to set the timezone for the log outputs of monerod correctly but it is not working. Mapping /etc/localtime via a volume does not work and you have not added the TZ package in your dockerfile. Maybe you can add "RUN apk add --no-cache tzdata" so that we can set something like ENV TZ=Europe/Copenhagen?
Added tzdata
via https://github.com/sethforprivacy/simple-monerod-docker/commit/9afb003ba707582383cd7441eedd3c1b23d164ef
@mondsen please test and report back once the new image is finished building and has been pushed:
https://github.com/sethforprivacy/simple-monerod-docker/actions/runs/3758381820/jobs/6386659088
I just tested the new image but the TZ can not be changed. I have not found a definite answer yet but maybe after adding the package tzdata it is also mandatory to define a default ENV in the Dockerfile to be able to overwrite it?
@sethforprivacy Hi again, can you try and set e.g. ENV TZ=Europe/Copenhagen to the Dockerfile? I hope this way I am able to overwrite it with my local variable.
@mondsen will do some testing on this as I have time.