Windows host, gitlab-runner (windows app), Docker container running windows

I am trying to use a Windows host, with the 64-bit gitlab-runner and Docker Desktop for Windows to run a Windows containers.

I followed the instructions to Install and configure GitLab Runner on Windows.

I believe everything is running as expected

PS C:\GitLab-Runner> .\gitlab-runner.exe verify
Runtime platform                                    arch=amd64 os=windows pid=4592 revision=76984217 version=15.1.0
Verifying runner... is alive                        runner=ex5a2sxg

And this is my config

concurrent = 1
check_interval = 0

[session_server]
  session_timeout = 1800

[[runners]]
  name = "PC36.cxx.cxxx.com"
  url = "https://gitlab.x.x.com/"
  token = "ex5axxxxxxxxxx6Ta"
  executor = "shell"
  shell = "powershell"
  [runners.custom_build_dir]
  [runners.cache]
    [runners.cache.s3]
    [runners.cache.gcs]
    [runners.cache.azure]
  [runners.docker]
    tls_verify = false
    image = "chocolatey/choco:latest-windows"
    privileged = false
    disable_entrypoint_overwrite = false
    oom_kill_disable = false
    disable_cache = false
    volumes = ["c:\\cache"]
    shm_size = 0

PS C:> Get-WinEvent -ProviderName gitlab-runner

7/27/2022 9:57:50 AM              2 Warning          WARNING: Checking for jobs... failed               ...
7/27/2022 9:57:50 AM              1 Information      Configuration loaded                                builds=0...
7/27/2022 9:57:47 AM              2 Warning          WARNING: Checking for jobs... failed               ...
7/27/2022 9:57:44 AM              2 Warning          WARNING: Checking for jobs... failed               ...
7/27/2022 9:57:41 AM              2 Warning          WARNING: Checking for jobs... failed               ...
7/27/2022 9:57:38 AM              2 Warning          WARNING: Checking for jobs... failed               ...
7/27/2022 9:57:35 AM              2 Warning          WARNING: Checking for jobs... failed               ...

I do not know how to investigate the WARNINGs. Any help here?

I have tried

  • executor = “docker”
  • executor = “docker-windows”
  • executor = “shell”

Yet, this Windows gitlab-runner will not pick up any jobs. The tags are correct. But CI/CD says

This job has not started yet
This job is in pending state and is waiting to be picked by a runner

Any help would be appreciated. Thank you.

What does it show in Admin → Overview → Runners?

Does the runner appear here, and is it online?

Yes it it appears and shows online.

I can see the runner is version 15.1.0 what version is your Gitlab install?

GitLab Enterprise Edition 15.1.2-ee