It is not possible to start w32time service inside a container, the following error is shown:
C:\>net start w32time System error 1058 has occurred. The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
It is not possible to run a native NTP server inside a Windows container due to OS-level virtualization design limitations.
It is possible to use a third-party NTP server inside the container.
NOTE: Some third-party solutions may require
SeSystemtimePrivilege for the NT Authority\Local System account.
For more information, refer to this article:
Unable to run Meinberg NTP server in Windows container