Docker系统与windows Docker容器的时间同步
我正在windows docker上运行asp.net核心应用程序。简单地说,应用程序通过GoogleAPI进行身份验证以上传和下载文件 该应用程序在带有IIS Express的本地主机上运行良好。 但在windows docker容器上,它正在填充一个错误:Docker系统与windows Docker容器的时间同步,docker,asp.net-core,timezone,windows-container,Docker,Asp.net Core,Timezone,Windows Container,我正在windows docker上运行asp.net核心应用程序。简单地说,应用程序通过GoogleAPI进行身份验证以上传和下载文件 该应用程序在带有IIS Express的本地主机上运行良好。 但在windows docker容器上,它正在填充一个错误: Google.Apis.Auth.OAuth2.Responses.TokenResponseException: Error:"invalid_grant", Description:"Invalid JWT: Token must b
Google.Apis.Auth.OAuth2.Responses.TokenResponseException: Error:"invalid_grant", Description:"Invalid JWT: Token must be a short-lived token (60 minutes) and in a reasonable timeframe. Check your iat and exp values and use a clock with a skew to account for clock differences between systems."
我看了一下“docker系统信息”,时间还行。但我进入集装箱检查时间,它比“docker系统时间”晚了10个小时
我遇到了这个错误,请帮助。我假设问题不是时间偏差,而是时区,似乎只影响Hyper-V容器,并且在Windows 1709中得到了修复()是否找到了这个问题的解决方案?@msr否,我没有。我只是将windows容器更改为linux容器。此错误仅出现在windows docker容器中。这似乎是windows容器时间同步问题的原因。这里面有更多的历史。尽管问题中有报告,但我一直无法找到一个工作正常的windows容器映像。