|
@@ -337,7 +337,7 @@ jobs:
|
|
}
|
|
}
|
|
-
|
|
-
|
|
name: Starting containerd
|
|
name: Starting containerd
|
|
- if: matrix.runtime == 'containerd'
|
|
|
|
|
|
+ if: matrix.runtime == 'containerd' && matrix.os == 'windows-2019'
|
|
run: |
|
|
run: |
|
|
Write-Host "Generating config"
|
|
Write-Host "Generating config"
|
|
& "${{ env.BIN_OUT }}\containerd.exe" config default | Out-File "$env:TEMP\ctn.toml" -Encoding ascii
|
|
& "${{ env.BIN_OUT }}\containerd.exe" config default | Out-File "$env:TEMP\ctn.toml" -Encoding ascii
|
|
@@ -360,10 +360,14 @@ jobs:
|
|
name: Starting test daemon
|
|
name: Starting test daemon
|
|
run: |
|
|
run: |
|
|
Write-Host "Creating service"
|
|
Write-Host "Creating service"
|
|
- If ("${{ matrix.runtime }}" -eq "containerd") {
|
|
|
|
|
|
+ If ("${{ matrix.runtime }}" -eq "containerd" -and "${{ matrix.os }}" -eq "windows-2019") {
|
|
$runtimeArg="--containerd=\\.\pipe\containerd-containerd"
|
|
$runtimeArg="--containerd=\\.\pipe\containerd-containerd"
|
|
echo "DOCKER_WINDOWS_CONTAINERD_RUNTIME=1" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
|
|
echo "DOCKER_WINDOWS_CONTAINERD_RUNTIME=1" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
|
|
}
|
|
}
|
|
|
|
+ If ("${{ matrix.runtime }}" -eq "containerd" -and "${{ matrix.os }}" -eq "windows-2022") {
|
|
|
|
+ $runtimeArg="--default-runtime=io.containerd.runhcs.v1"
|
|
|
|
+ echo "DOCKER_WINDOWS_CONTAINERD_RUNTIME=1" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
|
|
|
|
+ }
|
|
New-Item -ItemType Directory "$env:TEMP\moby-root" -ErrorAction SilentlyContinue | Out-Null
|
|
New-Item -ItemType Directory "$env:TEMP\moby-root" -ErrorAction SilentlyContinue | Out-Null
|
|
New-Item -ItemType Directory "$env:TEMP\moby-exec" -ErrorAction SilentlyContinue | Out-Null
|
|
New-Item -ItemType Directory "$env:TEMP\moby-exec" -ErrorAction SilentlyContinue | Out-Null
|
|
Start-Process -Wait -NoNewWindow "${{ env.BIN_OUT }}\dockerd" `
|
|
Start-Process -Wait -NoNewWindow "${{ env.BIN_OUT }}\dockerd" `
|
|
@@ -401,6 +405,11 @@ jobs:
|
|
Start-Sleep -Seconds 1
|
|
Start-Sleep -Seconds 1
|
|
}
|
|
}
|
|
Write-Host "Test daemon started and replied!"
|
|
Write-Host "Test daemon started and replied!"
|
|
|
|
+ If ("${{ matrix.runtime }}" -eq "containerd") {
|
|
|
|
+ If (-not (Get-Process -Name containerd -ErrorAction:SilentlyContinue)) {
|
|
|
|
+ Throw "containerd process is not running"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
env:
|
|
env:
|
|
DOCKER_HOST: npipe:////./pipe/docker_engine
|
|
DOCKER_HOST: npipe:////./pipe/docker_engine
|
|
-
|
|
-
|
|
@@ -466,14 +475,14 @@ jobs:
|
|
DOCKER_HOST: npipe:////./pipe/docker_engine
|
|
DOCKER_HOST: npipe:////./pipe/docker_engine
|
|
-
|
|
-
|
|
name: Stop containerd
|
|
name: Stop containerd
|
|
- if: always() && matrix.runtime == 'containerd'
|
|
|
|
|
|
+ if: always() && matrix.runtime == 'containerd' && matrix.os == 'windows-2019'
|
|
run: |
|
|
run: |
|
|
$ErrorActionPreference = "SilentlyContinue"
|
|
$ErrorActionPreference = "SilentlyContinue"
|
|
Stop-Service -Force -Name containerd
|
|
Stop-Service -Force -Name containerd
|
|
$ErrorActionPreference = "Stop"
|
|
$ErrorActionPreference = "Stop"
|
|
-
|
|
-
|
|
name: Containerd logs
|
|
name: Containerd logs
|
|
- if: always() && matrix.runtime == 'containerd'
|
|
|
|
|
|
+ if: always() && matrix.runtime == 'containerd' && matrix.os == 'windows-2019'
|
|
run: |
|
|
run: |
|
|
Copy-Item "$env:TEMP\ctn.log" -Destination ".\bundles\containerd.log"
|
|
Copy-Item "$env:TEMP\ctn.log" -Destination ".\bundles\containerd.log"
|
|
Get-Content "$env:TEMP\ctn.log" | Out-Host
|
|
Get-Content "$env:TEMP\ctn.log" | Out-Host
|