Tag: 启动进程

使用Docker的纳米服务器Powershell无声安装

我的docker文件得到一个Nano服务器容器,它自动添加Java。 # Get nano server FROM microsoft/nanoserver # Download file and set in docker container ADD http://javadl.oracle.com/webapps/download/AutoDL?BundleId=225355_090f390dda5b47b9b721c7dfaa008135 \ 'C:\\java\jre-8u151-windows-x64.exe' # Silent install and delete install file RUN powershell Start-Process -filepath C:\java\jre-8u151-windows-x64.exe -ArgumentList '/s,INSTALLDIR=c:\Java\jre1.8.0_151' -Passthru -Wait; \ Remove-Item C:\\java\jre-8u151-windows-x64.exe -Force CMD powershell 该过程正常工作,但在纳米服务器,它不安装任何东西没有显示任何错误。 但是,使用Core Server,它会安装它。 无提示安装的结果是: Handles NPM(K) PM(K) WS(K) CPU(s) Id SI ProcessName ——- —— […]