Skip to content

Commit

Permalink
Install Docker for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
anhappdev committed Jul 23, 2024
1 parent 6a963b9 commit 9aca9dc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/cloudbuild/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ echo "previous step took: $("{0:HH:mm:ss}" -f ([datetime]$($(get-date) - $stepTi
$stepTime = $(get-date)

echo "installing Docker..."
$dockerInstallScript = "https://download.docker.com/win/stable/Docker%20Desktop%20Installer.exe"
$dockerInstallerPath = "$env:TEMP\DockerDesktopInstaller.exe"
Invoke-WebRequest -Uri $dockerInstallScript -OutFile $dockerInstallerPath
Start-Process -FilePath $dockerInstallerPath -ArgumentList "/install", "/quiet" -Wait
Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/Windows-Containers/Main/helpful_tools/Install-DockerCE/install-docker-ce.ps1" -o install-docker-ce.ps1
.\install-docker-ce.ps1
if (!$?) { echo "error code: $($LastExitCode)"; [System.Environment]::Exit($LastExitCode) }
echo "Docker installed successfully"
echo "script run time: $("{0:HH:mm:ss}" -f ([datetime]$($(get-date) - $startTime).Ticks))"
Expand Down

0 comments on commit 9aca9dc

Please sign in to comment.