I deployed docker Linux to gcloud gke pod.
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!
ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
I'm not sure how this is working on your local environment. Looks like you are missing (Ubuntu, Debian):
So in summary something like this:
This blog has a very good explanation, including how to do it Alpine Linux.