Fail to run in Windows docker container
Summary
Fail to run in Windows docker container.
Not sure whether this is related to https://github.com/golang/go/issues/35447
Steps to reproduce
- Just put
gitlab-runner.exe
in a Windows docker container, which is based onmcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2019
; - Run any command that
gitlab-runner
provides;
Relevant logs and/or screenshots
PS C:\gitlab-runner> .\gitlab-runner.exe --version
fatal error: PowerRegisterSuspendResumeNotification failure
runtime stack:
runtime.throw(0x17bf6e5, 0x2e)
/usr/local/go/src/runtime/panic.go:774 +0x79 fp=0x271fdb0 sp=0x271fd80 pc=0x433499
runtime.monitorSuspendResume()
/usr/local/go/src/runtime/os_windows.go:294 +0x1a9 fp=0x271fe50 sp=0x271fdb0 pc=0x42f5f9
runtime.goenvs()
/usr/local/go/src/runtime/os_windows.go:531 +0x1ba fp=0x271fea8 sp=0x271fe50 pc=0x42ff7a
runtime.schedinit()
/usr/local/go/src/runtime/proc.go:554 +0xa9 fp=0x271ff00 sp=0x271fea8 pc=0x435e99
runtime.rt0_go(0x271ff30, 0x7ffd8b7b7974, 0x271ff30, 0x0, 0x7ffd8b7b7974, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/usr/local/go/src/runtime/asm_amd64.s:214 +0x13d fp=0x271ff08 sp=0x271ff00 pc=0x45f92d
Environment description
gitlab-runner.exe --version
Version: 12.6.0
Git revision: ac8e767a
Git branch: 12-6-stable
GO version: go1.13.4
Built: 2019-12-22T11:55:34+0000
OS/Arch: windows/amd64