Chocolatey 提供快速安裝應用程式與工具的雲端服務,並提供指令化的方式,搜尋、安裝、更新、移除應用程式或工具等。
https://chocolatey.org/install
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
P.S. 若裝不起來,可以直接將這資料夾刪除 C:\ProgramData\chocolatey試試。
可以在這個網站找到可 chocolatey 提供的應用程式資源及安裝指令
https://community.chocolatey.org/packages
用系統管理員帳號執行 Powershell,輸入以下指令
choco install docker-desktop -y
function Install-Chocolatey { try { Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')); } catch { $ErrorMessage = $_.Exception.Message; $FailedItem = $_.Exception.ItemName; Write-Host $ErrorMessage + $FailedItem; return $false; } return $true; } Write-Host "Install chocolatey" Install-Chocolatey; Write-Host "Install Docker Software" choco install docker-desktop -y choco install docker-compose -y choco install docker-kitematic -y