Skip to content

Instantly share code, notes, and snippets.

@ChabaOk
Last active September 16, 2016 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChabaOk/456b297d854b18daf11e35ad841fb225 to your computer and use it in GitHub Desktop.
Save ChabaOk/456b297d854b18daf11e35ad841fb225 to your computer and use it in GitHub Desktop.
# 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