Skip to content

How to properly set container Time Zone configuration? OR, how to ignore host Time Zone configuration? #464

@sanguedemonstro

Description

@sanguedemonstro

Hi, I'm using the following Windows Server Core Image:

FROM microsoft/dotnet-framework:4.7.2-runtime-windowsservercore-ltsc2019

My container image need to run over unknown container hosts, like AWS, Azure AKS, On Premises and even on Windows Desktops and those hosts have unknown Time Zone configurations.

I need to ensure that an Windows Server Core ltsc2019 container runs under an exactly Time Zone.

I'm newbie, but as far as I know, the whole thing about containers is ship it as image once and run it everywhere, with environment isolation and integrity.. right?!

Well, I already tried:

  • tzutil or Set-Timezone: Not OK, lack of privileges
  • set registry during dockerfile build: Not OK, container starting seems to ignore it

So,

  • How to properly set container Time Zone configuration?
  • How to ignore host Time Zone configuration?

By the way, Windows Location and Language container settings seems to have same issues :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions