您可以在以下位置找到大量基于WindowsServiceCore的应用程序示例
StefanScherer/dockerfiles-windows
您需要编写一个Dockerfile(例如,
diskspd/Dockerfile在其中复制/解压缩/安装所需应用程序的位置)。
FROM microsoft/windowsservercore:10.0.14393.1770SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]ENV DISKSPD_VERSION 2.0.17RUN Invoke-WebRequest $('https://gallery.technet.microsoft.com/DiskSpd-a-robust-storage-6cd2f223/file/152702/1/Diskspd-v{0}.zip' -f $env:DISKSPD_VERSION) -OutFile 'diskspd.zip' -UseBasicParsing ; Expand-Archive diskspd.zip -DestinationPath C: ; Remove-Item -Path diskspd.zip ; Remove-Item -Recurse armfre ; Remove-Item -Recurse x86fre ; Remove-Item *.docx ; Remove-Item *.pdfENTRYPOINT [ "C:\amd64fre\diskspd.exe" ]话虽如此,仍然需要对Windowscoreserver的完全GUI支持:
“
创建具有完全GUI支持的基本容器”。



