我正在尝试为 dotnet 4.6 项目设置 CI。我将 GitLab v8.5.1 与共享运行器 v1.0.4 一起使用。
我已经安装了一个支持 docker 的 Windows Server 2016 CTP 4,并基于 microsoft windowsservercore 映像为 gitlab ci runner 创建了一个映像。
有我的.toml
concurrent = 1
[[runners]]
name = "docker runner 1"
url = "http://my_server/ci"
token = "my_token"
tls-ca-file = ""
executor = "docker"
builds_dir="c:\builds"
[runners.docker]
image = "windowsservercoregitlab:latest"
host = "tcp://127.0.0.1:2375"
privileged = false
和.yaml
文件
阶段: - 构建
job:
stage: build
script:
- echo "Test run my build..."
当我运行构建时,它会失败并显示日志:
gitlab-ci-multi-runner 1.0.4 (014aa8c)
Using Docker executor with image windowsservercoregitlab:latest ...
ERROR: Build failed with: API error (500): hcsshim::ImportLayer - Win32 API call returned error r1=2147942402 err=The system cannot find the file specified. layerId=c1ef764e74b9a93262141455f30229877e80ed9c04b93af6bc73e03568c33790 flavour=1 folder=C:\ProgramData\docker\windowsfilter\c1ef764e74b9a93262141455f30229877e80ed9c04b93af6bc73e03568c33790-1950806090
显然,它试图创建一些卷并失败,但我无法理解哪个卷或如何正确设置它。
我该如何解决这个问题?