Last active
September 16, 2016 02:27
-
-
Save ChabaOk/456b297d854b18daf11e35ad841fb225 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script is from MSDN | |
Install-WindowsFeatures Containers | |
#Download docker service and client | |
Invoke-WebRequest "https://get.docker.com/builds/Windows/x86_64/docker-1.12.1.zip" -OutFile "$env:TEMP\docker-1.12.1.zip" -UseBasicParsing | |
# Put docker to \Program Files\docker | |
Expand-Archive -Path "$env:TEMP\docker-1.12.1.zip" -DestinationPath $env:ProgramFiles | |
$env:path += ";c:\program files\docker" | |
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Program Files\Docker", [EnvironmentVariableTarget]::Machine) | |
& $env:ProgramFiles\docker\dockerd.exe --register-service | |
Start-Service docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment