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
b22a426a
Unverified
Commit
b22a426a
authored
Jul 25, 2017
by
Stefan Scherer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to DockerMsftProvider
parent
d3ce6506
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
scripts/docker/2016/install-docker.ps1
scripts/docker/2016/install-docker.ps1
+13
-11
No files found.
scripts/docker/2016/install-docker.ps1
View file @
b22a426a
$ProgressPreference
=
'SilentlyContinue'
Set-ExecutionPolicy
Bypass
-scope
Process
New-Item
-Type
Directory
-Path
"
$(
$
env
:
ProgramFiles
)
\docker"
wget
-outfile
$
env
:
TEMP
\docker-17-03-1-ee.zip
"https://dockermsft.blob.core.windows.net/dockercontainer/docker-17-03-1-ee.zip"
Expand-Archive
-Path
$
env
:
TEMP
\docker-17-03-1-ee.zip
-DestinationPath
$
env
:
TEMP
-Force
copy
$
env
:
TEMP
\docker\
*.
exe
$
env
:
ProgramFiles
\docker
Remove-Item
$
env
:
TEMP
\docker-17-03-1-ee.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
Get-PackageSource
Write-Host
"Install-PackageProvider ..."
Install-PackageProvider
-Name
NuGet
-MinimumVersion
2.8.5.201
-Force
Get-PackageSource
Write-Host
"Install-Module ..."
Install-Module
-Name
DockerMsftProviderInsider
-Force
Get-PackageSource
Write-Host
"Set-PSRepository trusted ..."
Set-PSRepository
-InstallationPolicy
Trusted
-Name
PSGallery
Write-Host
"Install-Package ..."
Install-Package
-Name
docker
-ProviderName
DockerMsftProviderInsider
-Force
Write-Host
"Set-PSRepository untrusted ..."
Set-PSRepository
-InstallationPolicy
Untrusted
-Name
PSGallery
Start-Service
docker
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