Add support for Windows Version - Windows Server 2022 Version 21H2

Summary

Windows Server 2022 Version 21H2 (OS Build 20348.887) is not supported

Steps to reproduce

Install Windows Server 2022 LTSC.

Install Windows Updates.

Install latest Gitlab Runner.

Register runner as docker-windows.

Create and run pipeline with docker.

.gitlab-ci.yml
build:
  stage: build
  tags: [win-docker]
  image:
    name: mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-2022
    entrypoint: [""]

Actual behavior

Error

Expected behavior

Anything else.

Relevant logs and/or screenshots

job log
Running with gitlab-runner 15.2.1 (32fc1585)
  on xxx
Preparing the "docker-windows" executor
ERROR: Failed to remove network for build
ERROR: Preparation failed: detecting base image: unsupported Windows Version: Microsoft Windows Server Version 21H2 (OS Build 20348.887)
Will be retried in 3s ...
ERROR: Failed to remove network for build
ERROR: Preparation failed: detecting base image: unsupported Windows Version: Microsoft Windows Server Version 21H2 (OS Build 20348.887)
Will be retried in 3s ...
ERROR: Failed to remove network for build
ERROR: Preparation failed: detecting base image: unsupported Windows Version: Microsoft Windows Server Version 21H2 (OS Build 20348.887)
Will be retried in 3s ...
ERROR: Job failed (system failure): detecting base image: unsupported Windows Version: Microsoft Windows Server Version 21H2 (OS Build 20348.887)

Environment description

config.toml contents
concurrent = 1
check_interval = 0

[session_server]
  session_timeout = 1800

[[runners]]
  name = "win-docker"
  url = "https://xxx/"
  token = "xxx"
  executor = "docker-windows"
  shell = "powershell"
  [runners.custom_build_dir]
  [runners.cache]
    [runners.cache.s3]
    [runners.cache.gcs]
    [runners.cache.azure]
  [runners.docker]
    tls_verify = false
    image = "mcr.microsoft.com/windows/servercore:ltsc2022"
    privileged = false
    disable_entrypoint_overwrite = false
    oom_kill_disable = false
    disable_cache = false
    volumes = ["c:\\cache"]
    shm_size = 0

Used GitLab Runner version

Assignee Loading
Time tracking Loading