<p>I deployed docker Linux to gcloud gke pod.</p>

<p>I added the code bellow, trying to set up the time zone in the dockerfile. This code is running correctly in a local docker. But it does not work in gcloud gke pod.  The timezones are in local PST, timezones in GKE Pod are still in UTC. Please help!</p>

<pre><code>ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime &amp;&amp; echo $TZ &gt; /etc/timezone
</code></pre>

<p>I'm not sure how this is working on your local environment. Looks like you are missing (Ubuntu, Debian):</p>

<pre><code>dpkg-reconfigure -f noninteractive tzdata
</code></pre>

<p>So in summary something like this:</p>

<pre><code>echo America/Los_Angeles &gt;/etc/timezone &amp;&amp; \
ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime &amp;&amp; \
dpkg-reconfigure -f noninteractive tzdata
</code></pre>

<p>This <a href="https://www.ivankrizsan.se/2015/10/31/time-in-docker-containers/" rel="nofollow noreferrer">blog</a> has a very good explanation, including how to do it <a href="https://alpinelinux.org/" rel="nofollow noreferrer">Alpine Linux</a>.</p>
