You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
568 B
19 lines
568 B
8 years ago
|
$ErrorActionPreference = 'Stop';
|
||
|
$files = ""
|
||
|
Write-Host Starting build
|
||
|
|
||
|
Write-Host Updating base images
|
||
|
docker pull microsoft/nanoserver
|
||
|
|
||
8 years ago
|
Write-Host Updating Docker engine to master
|
||
|
Stop-Service docker
|
||
|
$wc = New-Object net.webclient
|
||
|
$wc.Downloadfile("https://master.dockerproject.org/windows/amd64/dockerd.exe", "$env:ProgramFiles\docker\dockerd.exe")
|
||
|
$wc.Downloadfile("https://master.dockerproject.org/windows/amd64/docker.exe", "$env:ProgramFiles\docker\docker.exe")
|
||
|
Start-Service docker
|
||
|
docker version
|
||
8 years ago
|
|
||
8 years ago
|
docker build -t whoami -f Dockerfile.windows .
|
||
8 years ago
|
|
||
|
docker images
|