英文:
Docker image version after migration to .net 6.0
问题
我刚刚将我的应用程序从.NET Core 3.1迁移到.NET 6.0,只剩下最后一步了。我有一个名为Dockerfile.publish的文件,如果我理解正确的话,我需要将运行时版本更改为与.NET 6.0匹配。
对于.NET Core 3.1,使用的是:
FROM mcr.microsoft.com/dotnet/runtime:3.1-bionic
所以,我的问题是,在.NET 6.0中是否有与runtime:3.1-bionic相当的内容,因为我在文档中找不到任何相关信息。也许只需要简单地使用FROM mcr.microsoft.com/dotnet/runtime:6.0
就足够了?我在文档中找不到相关信息。
英文:
I have just migrated my app form .net core 3.1 to .net 6.0 and only one step left. I have file Dockerfile.publish and there if I understand correctly I need to change runetime version to match .net 6.0.
For .net core 3.1 there is:
FROM mcr.microsoft.com/dotnet/runtime:3.1-bionic
So, here is my question is it any equivalent for runtime:3.1-bionic in .net 6.0 because I can't find anything in documentation. Maybe just simple FROM mcr.microsoft.com/dotnet/runtime:6.0
is enough? I can't find anything about that in documentation.
答案1
得分: 1
Bionic指的是Ubuntu 18.04,它已经不再受支持。对于.NET 6,可以使用Ubuntu 20.04(6.0-focal
)和Ubuntu 22.04(6.0-jammy
)的标签。你可以在https://hub.docker.com/_/microsoft-dotnet-runtime/找到所有当前支持的.NET运行时镜像的标签。
英文:
Bionic refers to Ubuntu 18.04, which is not supported anymore. For .NET 6, tags for both Ubuntu 20.04 (6.0-focal
) and Ubuntu 22.04 (6.0-jammy
) are available. You can find all currently supported tags for the .NET runtime images at https://hub.docker.com/_/microsoft-dotnet-runtime/.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论