1
我正在嘗試爲dotnet 4.6項目設置配置項。 我使用GitLab v8.5.1與共享的運行程序v1.0.4。無法在windows服務器上使用docker運行構建gitlab-ci
我已經安裝了支持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
顯然,它試圖創建一些音量和失敗,但我不明白哪個音量或如何正確設置它。
我該如何解決這個問題?