Commit 2d0539f3 authored by Stefan Scherer's avatar Stefan Scherer
Browse files

Update nightly docker and 14393 docker base images

parent 078c8dfa
Set-ExecutionPolicy Bypass -scope Process
New-Item -Type Directory -Path "$($env:ProgramFiles)\docker"
wget -outfile $env:TEMP\docker-1.12.1.zip https://get.docker.com/builds/Windows/x86_64/docker-1.12.1.zip
Expand-Archive -Path $env:TEMP\docker-1.12.1.zip -DestinationPath $env:TEMP -Force
wget -outfile $env:TEMP\docker-1.13.0-dev.zip "https://master.dockerproject.com/windows/amd64/docker-1.13.0-dev.zip"
Expand-Archive -Path $env:TEMP\docker-1.13.0-dev.zip -DestinationPath $env:TEMP -Force
copy $env:TEMP\docker\*.exe $env:ProgramFiles\docker
Remove-Item $env:TEMP\docker-1.12.1.zip
Remove-Item $env:TEMP\docker-1.13.0-dev.zip
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";$($env:ProgramFiles)\docker", [EnvironmentVariableTarget]::Machine)
$env:Path = $env:Path + ";$($env:ProgramFiles)\docker"
. dockerd --register-service -H npipe:// -H 0.0.0.0:2375 -G docker
......@@ -11,13 +11,13 @@ $env:Path = $env:Path + ";$($env:ProgramFiles)\docker"
Start-Service Docker
Write-Host "Installing WindowsServerCore container image..."
& "C:\Program Files\docker\docker.exe" pull microsoft/windowsservercore:10.0.14300.1030
& "C:\Program Files\docker\docker.exe" tag microsoft/windowsservercore:10.0.14300.1030 microsoft/windowsservercore:latest
& "C:\Program Files\docker\docker.exe" pull microsoft/windowsservercore:10.0.14393.206
& "C:\Program Files\docker\docker.exe" tag microsoft/windowsservercore:10.0.14393.206 microsoft/windowsservercore:latest
if ((get-windowsfeature Hyper-V | where installed).count) {
Write-Host "Installing NanoServer container image..."
& "C:\Program Files\docker\docker.exe" pull microsoft/nanoserver:10.0.14300.1030
& "C:\Program Files\docker\docker.exe" tag microsoft/nanoserver:10.0.14300.1030 microsoft/nanoserver:latest
& "C:\Program Files\docker\docker.exe" pull microsoft/nanoserver:10.0.14393.206
& "C:\Program Files\docker\docker.exe" tag microsoft/nanoserver:10.0.14393.206 microsoft/nanoserver:latest
} else {
Write-Host "Skipping NanoServer container image"
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment