简体   繁体   English

Docker容器在Azure上发布错误

[英]Docker Container publish error on Azure

I have created a docker image from ASP.NET 4.5 version on Windows 10 using the base image microsoft/windowsservercore . 我已经使用基础映像microsoft / windowsservercore在Windows 10上从ASP.NET 4.5版本创建了一个docker映像。 I then deployed my changes to the image using CLI. 然后,我使用CLI将更改部署到映像。

I then pushed my image to Azure Container Registry. 然后,我将映像推送到Azure容器注册表。 Now when I try to create a Container on Azure using the above image I get the below error: 现在,当我尝试使用以上图像在Azure上创建容器时,出现以下错误:

"The OS version of image xxxx.azurecr.io/xxximage:latest" is not supported. 不支持“图像xxxx.azurecr.io/xxximage:latest的操作系统版本”。 (Code:OsVersionNotSupported) (代码:OsVersionNotSupported)

Any help is much appreciated as I have spent quite a lot of time investigating this. 非常感谢您的帮助,因为我花了很多时间对此进行调查。

Only Windows LTS version of containers are supported at the moment for ACI. 目前,ACI仅支持Windows LTS版本的容器。 You can find some clue here: https://github.com/MicrosoftDocs/azure-docs/issues/8586 您可以在此处找到一些线索: https : //github.com/MicrosoftDocs/azure-docs/issues/8586
eg you can use microsoft/aspnet:4.6.2-windowsservercore-ltsc2016 image which can then be pushed and deployed in Azure. 例如,您可以使用microsoft / aspnet:4.6.2-windowsservercore-ltsc2016映像,然后可以将其推送并部署到Azure中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM