I want to run Drone’s Docker runner on Windows Server 2022. Using drone/drone-runner-docker:1
gives me the error “The container operating system does not match the host operating system.”. Looking at drone-runner-docker
on the Docker Hub, it seems that the most recent supported version is 1909, which at this point is already no longer supported by Microsoft.
I looked at Drone’s repository and found docker/Dockerfile.agent.windows.<version>
files. The only differences between the versions are the used base image, so I was hoping to be able to build my own runner image based on mcr.microsoft.com/windows/nanoserver:ltsc2022
. Unfortunately, I was unable to find build instructions for the runner / docker images, the BUILDING
file seems to only be for the server.
Finally, I noticed some discrepancies in the mentioned version numbers:
- Install On Windows | Drone says that versions 1809 and 1903 are supported.
- drone/docker at master · drone/drone · GitHub contains docker files for versions 1803, 1809, and 1903.
-
drone-runner-docker
on the Docker Hub contains images for versions 1809, 1903, and 1909 (where does 1909 even come from?).
How come the provided images are so outdated? Are recent versions of Windows still supported? Can/should I build my own images? If yes, how?