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).
FROM intersystemsdc/iris-community
USER root
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -yq tzdata && \
ln -fs /usr/share/zoneinfo/America/Los_Angeles /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata
USER irisownerYou can then do a docker build . to create the container, docker image ls, and docker run
- Log in to post comments