我正在尝试为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
显然,它试图创建一些音量并失败,但我无法理解哪个音量或如何正确设置它。
我怎么能解决这个问题?
答案 0 :(得分:0)
正如我从他们最recent Webcast回忆的那样。目前,Windows跑步者仅支持“壳牌”。和dockers用于Linux / Unix系统(不确定Mac)。话虽如此,我没有使用shell执行器的问题。