如何Dockerize Windows应用程序 [英] How to Dockerize windows application

查看:25
本文介绍了如何Dockerize Windows应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 Windows 应用程序,我想对其进行容器化.它是一个 Windows 桌面应用程序(不是 Web 应用程序).我做了一些搜索,发现很少有关于容器化桌面应用程序的内容.我想要容器化的应用程序在 WindowsServerCore 上运行良好.我的机器上有 Windowsservercore 映像.

i have a windows application which I want to containerize. Its a windows desktop application (not web application). I did some searching and found very little about containerizing desktop application. The application which I want to containerize works fine on WindowsServerCore. I have Windowsservercore image on my machine.

我想知道如何将其容器化.有没有可用的文档或有用的视频?当我完成 dockerfile 时,我可以与我的应用程序 gui 交互吗???怎么样???

I want to know how can I go about containerizing it. Any documentation or useful videos are available? when i completed dockerfile can i interact with my application gui??? how???

推荐答案

您可以在 StefanScherer/dockerfiles-windows

您需要编写一个 Dockerfile(例如 diskspd/Dockerfile 复制/解压缩/安装所需应用程序的位置.

You need to write a Dockerfile (like for instance diskspd/Dockerfile where you copy/unzip/install the application you need.

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 支持".

That being said, a full GUI support for windowscoreserver is still requested:
"Create base container with full GUI support".

这篇关于如何Dockerize Windows应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆