I am trying to test a software that exports a file in certain periods of time. I thought of using a docker container to give the desired time and not use system time. The thing is that I am lacking permissions to change the containers time with the following error message.
PS C:\usr\src\app> Set-Date -Date (Get-Date).AddDays(3)
Set-Date : A required privilege is not held by the client
At line:1 char:1
Is it possible to do on a windows docker container? My base image is mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2019
Thank you in advance!
C:\usr\src\app>whoami user manager\containeradministrator
– Naoma