使用PowerShell安装Docker桌面可执行文件

时间:2020-01-27 10:47:08

标签: windows powershell docker

我尝试使用PowerShell脚本在Windows中静默安装docker桌面。

Docker.exe的下载链接为“ https://download.docker.com/win/stable/Docker%20Desktop%20Installer.exe

$updater = "C:\Check\Docker.exe"
(Start-Process "$updater" -ArgumentList ( "/S ")   -Wait -Passthru).ExitCode

我收到错误消息“无效的操作:未知的命令/ S”

没有任何参数,我们将获得用于创建快捷方式的确认窗口

传递的任何参数都会给出无效操作错误。

任何帮助。

0 个答案:

没有答案