dockerize 一个 wpf 应用程序并使用它
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/44502886/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
dockerize a wpf application and use it
提问by Ganbo
I'm trying to dockerize a wpf application. Just a simple app for that time.
我正在尝试 dockerize 一个 wpf 应用程序。当时只是一个简单的应用程序。
for now i got this dockerfile :
现在我得到了这个 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 i tried with entrypoint, run and cmd. But got this error :
我尝试使用入口点、运行和 cmd。但得到这个错误:
The filename, directory name, or volume label syntax is incorrect.
And i would like know how it's work after run a container.
我想知道运行容器后它是如何工作的。
Thanks.
谢谢。
回答by Prabhakaran Rajagopal
You cannot run a WPF application in docker. Check https://msdn.microsoft.com/en-us/magazine/mt797650.aspx
您不能在 docker 中运行 WPF 应用程序。检查https://msdn.microsoft.com/en-us/magazine/mt797650.aspx

