mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
23 lines
627 B
PowerShell
23 lines
627 B
PowerShell
################################################################################
|
|
## File: Update-DockerImages.ps1
|
|
## Desc: Pull some standard docker images.
|
|
## Must be run after docker is installed.
|
|
################################################################################
|
|
|
|
function DockerPull {
|
|
Param ([string]$image)
|
|
|
|
Write-Host Installing $image ...
|
|
docker pull $image
|
|
|
|
if (!$?) {
|
|
Write-Host "Docker pull failed with a non-zero exit code"
|
|
exit 1
|
|
}
|
|
}
|
|
|
|
$dockerToolset = (Get-ToolsetContent).docker
|
|
foreach($dockerImage in $dockerToolset.images) {
|
|
DockerPull $dockerImage
|
|
}
|