dockerize 一个 wpf 应用程序并使用它 [英] dockerize a wpf application and use it

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

问题描述

我正在尝试 dockerize 一个 wpf 应用程序.只是当时的一个简单应用.

I'm trying to dockerize a wpf application. Just a simple app for that time.

现在我得到了这个 dockerfile :

for now i got this dockerfile :

FROM microsoft/nanoserver
WORKDIR C
run "$PATH"
#ENTRYPOINT ["C:\Users\TestDev\Documents\Visual Studio 2017\Projects\TestExe\TestExe\bin\Release\TestExe.exe"]
RUN  ["C:\Users\TestDev\Documents\Visual Studio 2017\Projects\TestExe\TestExe\bin\Release\TestExe.exe"]

Si 我尝试使用入口点、运行和 cmd.但是得到了这个错误:

Si i tried with entrypoint, run and cmd. But got this error :

The filename, directory name, or volume label syntax is incorrect.

我想知道运行容器后它是如何工作的.

And i would like know how it's work after run a container.

谢谢.

推荐答案

您无法在 docker 中运行 WPF 应用程序.检查 https://msdn.microsoft.com/en-us/magazine/mt797650.aspx

You cannot run a WPF application in docker. Check https://msdn.microsoft.com/en-us/magazine/mt797650.aspx

这篇关于dockerize 一个 wpf 应用程序并使用它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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