Breaking change: Multi-platform .NET 8 tags no longer support Windows containers #4549
richlander
announced in
Announcements
Replies: 1 comment 2 replies
-
Is there any good link on this "This change was made because Windows multi-platform tags don't work well with respect to selecting the best version. It is better to specify the Windows version you want." to gain further insight? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Breaking change: Multi-platform .NET 8 tags no longer support Windows containers
Multi-platform container images make it easy to use the same tags in multiple environments, leaving
docker pull
to pull content that matches the environment. Up until .NET 8, our multi-platform tags have included support for both Linux (Debian) and Windows (Nano Server). They will only reference Linux (Debian) images with .NET 8 and later. This change was made for .NET 8 Preview 3.This change was made because Windows multi-platform tags don't work well with respect to selecting the best version. It is better to specify the Windows version you want.
This change is discussed in much more detail in Switch multi-platform tags to Linux only. Separately, the referenced Linux images have been updated to Debian Bookworm.
Pulling a .NET 8 multi-platform tag will result in the following behavior, when "Windows Containers" mode is enabled.
Going forward, you will need to use one of the following tags, for Windows
mcr.microsoft.com/dotnet/aspnet:8.0-preview-nanoserver-ltsc2022
mcr.microsoft.com/dotnet/aspnet:8.0-preview-nanoserver-1809
mcr.microsoft.com/dotnet/aspnet:8.0-preview-windowsservercore-ltsc2022
mcr.microsoft.com/dotnet/aspnet:8.0-preview-windowsservercore-ltsc2019
Note:
8.0.1-nanoserver-ltsc2022
).aspnet
repo is used as an example. The same tags apply toruntime
andsdk
repos.Note: The
-preview
moniker is only needed for preview releases and will not be used after .NET 8 is released in November 2023.For example, our aspnetapp Dockerfile will no longer work to build Windows images, but instead a Windows-specific Dockerfile will be needed.
You can see that there are no longer any entries for Windows in the
8.0-preview
manifest tag.Beta Was this translation helpful? Give feedback.
All reactions