Commit c570926c authored by Stefan Scherer's avatar Stefan Scherer Committed by GitHub
Browse files

Merge pull request #33 from StefanScherer/oneget-provider

Switch to DockerMsftProviderInsider 
parents d3ce6506 f5d4a5eb
$ProgressPreference = 'SilentlyContinue'
Set-ExecutionPolicy Bypass -scope Process
New-Item -Type Directory -Path "$($env:ProgramFiles)\docker"
wget -outfile $env:TEMP\ ""
Expand-Archive -Path $env:TEMP\ -DestinationPath $env:TEMP -Force
copy $env:TEMP\docker\*.exe $env:ProgramFiles\docker
Remove-Item $env:TEMP\
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";$($env:ProgramFiles)\docker", [EnvironmentVariableTarget]::Machine)
$env:Path = $env:Path + ";$($env:ProgramFiles)\docker"
. dockerd --register-service -H npipe:// -H -G docker
Write-Host "Install-PackageProvider ..."
Install-PackageProvider -Name NuGet -MinimumVersion -Force
Write-Host "Install-Module ..."
Install-Module -Name DockerMsftProviderInsider -Force
Write-Host "Install-Package ..."
Set-PSRepository -InstallationPolicy Trusted -Name PSGallery
Install-Package -Name docker -ProviderName DockerMsftProviderInsider -Force
Set-PSRepository -InstallationPolicy Untrusted -Name PSGallery
Start-Service docker
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment