Container has wrong Timezone every time it is pushed to docker from DevOPS.

Peter van der Kleij 6 Reputation points
2021-09-30T08:23:40.683+00:00

All our containers have a default timezone UTC, we want to set the TimeZone to Amsterdam.

We cannot find the correct, command/way to fix this.

We tried:
• Editing the netcore.Dockerfile in many ways like:
○ RUN echo "Europe/Amsterdam" > /etc/timezone
○ RUN dpkg-reconfigure -f noninteractive tzdata
• Editing the 'docker build' command in the Container Pipeline.

Can anyone direct us to correct way of accomplish this setting?

Developer technologies | .NET | Other
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.