IRIS Docker Image Timezone
I am working on a setup using the iris docker image (iris:2020.4.0.547.0). I need the timezone to be a different timezone than the host. Is there a way to do that by passing in an options / variable?
Product version: IRIS 2020.1
I found a way to do it. you just mount /etc/localtime to the correct file on the host.
I like to bake the timezone into the container when I build it. That way it'll have the correct timezone no matter where I run it. Here's an example Dockerfile based on the latest IRIS container that sets the container's timezone to Pacific (aka America/Los_Angeles).
You can then do a
docker build .
to create the container,docker image ls
, anddocker run