[英]How to Dockerize windows application
我有一個Windows應用程序,我想要容器化。 它是一個Windows桌面應用程序(不是Web應用程序)。 我做了一些搜索,發現很少關於容器化桌面應用程序。 我想要容器化的應用程序在WindowsServerCore上運行良好。 我的機器上有Windowsservercore映像。
我想知道如何將其集裝箱化。 有任何文檔或有用的視頻嗎? 當我完成dockerfile我可以與我的應用程序gui交互??? 怎么樣???
您可以在StefanScherer/dockerfiles-windows
找到大量基於WindowsServiceCore的應用程序示例
您需要編寫一個Dockerfile(例如您在其中復制/解壓縮/安裝所需應用程序的diskspd/Dockerfile
。
FROM microsoft/windowsservercore:10.0.14393.1770
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
ENV DISKSPD_VERSION 2.0.17
RUN 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 *.pdf
ENTRYPOINT [ "C:\\amd64fre\\diskspd.exe" ]
話雖這么說,仍然要求對windowscoreserver提供完整的GUI支持:
“ 創建具有完全GUI支持的基礎容器” 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.