Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Bob Tanner
packer-windows
Commits
bc9cf62e
Unverified
Commit
bc9cf62e
authored
Apr 10, 2017
by
Stefan Scherer
Browse files
Update Docker 17.03.1
parent
41c1ec9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
scripts/docker/10/install-docker.ps1
View file @
bc9cf62e
Set-ExecutionPolicy
Bypass
-scope
Process
New-Item
-Type
Directory
-Path
"
$(
$
env
:
ProgramFiles
)
\docker"
# wget -outfile $env:TEMP\docker-17.03.
0
-ce.zip "https://dockermsft.blob.core.windows.net/dockercontainer/docker-1-13-1.zip"
# wget -outfile $env:TEMP\docker-17.03.
1
-ce.zip "https://dockermsft.blob.core.windows.net/dockercontainer/docker-1-13-1.zip"
Write-Host
"Downloading docker ..."
wget
-outfile
$
env
:
TEMP
\docker-17.03.
0
-ce.zip
"https://get.docker.com/builds/Windows/x86_64/docker-17.03.
0
-ce.zip"
Expand-Archive
-Path
$
env
:
TEMP
\docker-17.03.
0
-ce.zip
-DestinationPath
$
env
:
TEMP
-Force
wget
-outfile
$
env
:
TEMP
\docker-17.03.
1
-ce.zip
"https://get.docker.com/builds/Windows/x86_64/docker-17.03.
1
-ce.zip"
Expand-Archive
-Path
$
env
:
TEMP
\docker-17.03.
1
-ce.zip
-DestinationPath
$
env
:
TEMP
-Force
copy
$
env
:
TEMP
\docker\
*.
exe
$
env
:
ProgramFiles
\docker
Remove-Item
$
env
:
TEMP
\docker-17.03.
0
-ce.zip
Remove-Item
$
env
:
TEMP
\docker-17.03.
1
-ce.zip
[
Environment
]::
SetEnvironmentVariable
(
"Path"
,
$
env
:
Path
+
";
$(
$
env
:
ProgramFiles
)
\docker"
,
[
EnvironmentVariableTarget
]::
Machine
)
$
env
:
Path
=
$
env
:
Path
+
";
$(
$
env
:
ProgramFiles
)
\docker"
Write-Host
"Registering docker service ..."
...
...
scripts/docker/2016/install-docker.ps1
View file @
bc9cf62e
...
...
@@ -2,10 +2,10 @@ $ProgressPreference = 'SilentlyContinue'
Set-ExecutionPolicy
Bypass
-scope
Process
New-Item
-Type
Directory
-Path
"
$(
$
env
:
ProgramFiles
)
\docker"
wget
-outfile
$
env
:
TEMP
\docker-17-03-
0
-ee.zip
"https://dockermsft.blob.core.windows.net/dockercontainer/docker-17-03-
0
-ee.zip"
Expand-Archive
-Path
$
env
:
TEMP
\docker-17-03-
0
-ee.zip
-DestinationPath
$
env
:
TEMP
-Force
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-
0
-ee.zip
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
...
...
Write
Preview
Supports
Markdown
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