Skip to content

Commit

Permalink
install docker+server core container into 2016 stemcell [#146082947]
Browse files Browse the repository at this point in the history
Signed-off-by: Natalie Arellano <[email protected]>
  • Loading branch information
davidjahn authored and bot committed May 25, 2017
1 parent 175f94c commit 2040517
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bosh-psmodules/modules/BOSH.CFCell/BOSH.CFCell.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@ function Install-CFFeatures {
WindowsFeatureInstall("Web-ASP")
} elseif ($windowsVersion -Match "2016") {
WindowsFeatureInstall("Containers")
if ((Get-Command "docker.exe" -ErrorAction SilentlyContinue) -eq $null) {
Write-Host "Installing Docker"

Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
Install-Module -Name DockerMsftProvider -Repository PSGallery -Force
Install-Package -Name docker -ProviderName DockerMsftProvider -Force

Start-Service Docker

Write-Host "Installed Docker"
}

docker.exe pull microsoft/windowsservercore
}

Write-Log "Installed CloudFoundry Cell Windows Features"
Expand Down

0 comments on commit 2040517

Please sign in to comment.