Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Bob Tanner
packer-windows
Commits
25ea1b00
Commit
25ea1b00
authored
Oct 14, 2016
by
Stefan Scherer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always install nanoserver image, works without hyperv
parent
5d68e151
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
scripts/docker/install-docker.ps1
scripts/docker/install-docker.ps1
+3
-7
No files found.
scripts/docker/install-docker.ps1
View file @
25ea1b00
...
...
@@ -14,10 +14,6 @@ Write-Host "Installing WindowsServerCore container image..."
&
"C:\Program Files\docker\docker.exe"
pull
microsoft/windowsservercore:10.0.14393.321
&
"C:\Program Files\docker\docker.exe"
tag
microsoft/windowsservercore:10.0.14393.321
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.14393.321
&
"C:\Program Files\docker\docker.exe"
tag
microsoft/nanoserver:10.0.14393.321
microsoft/nanoserver:latest
}
else
{
Write-Host
"Skipping NanoServer container image"
}
Write-Host
"Installing NanoServer container image..."
&
"C:\Program Files\docker\docker.exe"
pull
microsoft/nanoserver:10.0.14393.321
&
"C:\Program Files\docker\docker.exe"
tag
microsoft/nanoserver:10.0.14393.321
microsoft/nanoserver:latest
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment