我正在尝试创建/查找一个在windows上下载和安装docker的脚本。这是已经存在的还是不可能的?
发布于 2017-01-05 10:21:42
在Windows Server 2016上安装Docker Engine有两个命令,脚本很简单:
Install-Module -Name DockerMsftProvider -Repository PSGallery -Force
Install-Package -Name docker -ProviderName DockerMsftProvider发布于 2019-01-04 19:56:22
下面是我在Windows10上安装Docker CE的步骤。
# First Download the installer (wget is slow...)
# wget https://download.docker.com/win/stable/Docker%20for%20Windows%20Installer.exe -OutFile docker-installer.exe
(New-Object System.Net.WebClient).DownloadFile('https://download.docker.com/win/stable/Docker%20for%20Windows%20Installer.exe', 'docker-installer.exe')
# Install
start-process -wait docker-installer.exe " install --quiet"
# Clean-up
rm docker-installer.exe
# Run
start-process "$env:ProgramFiles\docker\Docker\Docker for Windows.exe"
write-host "Done."https://stackoverflow.com/questions/41471819
复制相似问题