2019-01-30 22:37:16 +00:00
|
|
|
param (
|
|
|
|
[string]$docker_version
|
|
|
|
)
|
|
|
|
|
|
|
|
$ErrorActionPreference = "Stop";
|
2021-01-07 00:38:01 +00:00
|
|
|
$ProgressPreference = "SilentlyContinue";
|
2019-01-30 22:37:16 +00:00
|
|
|
|
|
|
|
New-Item -Path "docker-binary" -ItemType Directory | Out-Null
|
|
|
|
|
|
|
|
$download_folder = "docker-binary"
|
|
|
|
|
|
|
|
Invoke-WebRequest -O "$($download_folder)/docker-binaries.zip" "https://download.docker.com/win/static/stable/x86_64/docker-$($docker_version).zip"
|
|
|
|
Expand-Archive -Path "$($download_folder)/docker-binaries.zip" -DestinationPath "$($download_folder)"
|
|
|
|
Move-Item -Path "$($download_folder)/docker/docker.exe" -Destination "dist"
|