Skip to content

Multi-platform tags don't work correctly for Windows client #326

@richlander

Description

@richlander

Perhaps we're doing it wrong.

C:\>ver

Microsoft Windows [Version 10.0.22621.1265]

C:\>docker run --rm mcr.microsoft.com/dotnet/runtime:6.0-nanoserver-ltsc2022 cmd /c "ver"

Microsoft Windows [Version 10.0.20348.1547]

C:\>docker run --rm mcr.microsoft.com/dotnet/runtime:6.0 cmd /c "ver"

Microsoft Windows [Version 10.0.17763.4010]

That's not the behavior we want, right? The .NET multi-platform tag is servicing up a Windows 1809 image, as opposed 2022. I'm on a 22H2 host system.

Should we be guiding users to not use multi-platform tags for Windows workloads? If not, what's the best practice? I'm wondering if we should remove these Windows entries altogether, in newer releases. It's not really worth it if they produce the wrong results.

Here's the manifest for the 6.0 tag

docker manifest inspect mcr.microsoft.com/dotnet/runtime:6.0
{
   "schemaVersion": 2,
   "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
   "manifests": [
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1160,
         "digest": "sha256:03104a49e91e3c7e7b418f58fde632d417034f4432af5a1fb5c837be016a1072",
         "platform": {
            "architecture": "amd64",
            "os": "linux"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1160,
         "digest": "sha256:be7c3f289fd24fa6d9f951b6492f10793a168bf1ff4b8e19886bb4126d4c5967",
         "platform": {
            "architecture": "arm",
            "os": "linux",
            "variant": "v7"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1160,
         "digest": "sha256:3726b2709032fafb4c9ceb088267170b4cced31dbbede601af550502fdbe04f6",
         "platform": {
            "architecture": "arm64",
            "os": "linux",
            "variant": "v8"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1754,
         "digest": "sha256:2562fee514f160375d5ae1eaf139d9eb3824551af6a4c0de0da90f794a299b62",
         "platform": {
            "architecture": "amd64",
            "os": "windows",
            "os.version": "10.0.17763.4010"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1754,
         "digest": "sha256:f74644d47bf733c4292bd1c2aa32de1384d65c5cf74cfc0bcc05f978b5b5348d",
         "platform": {
            "architecture": "amd64",
            "os": "windows",
            "os.version": "10.0.20348.1547"
         }
      }
   ]
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions