Reputation: 143
I'm trying to dockerize a wpf application. Just a simple app for that time.
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 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.
Thanks.
Upvotes: 11
Views: 17617
Reputation: 703
You cannot run a WPF application in docker.
Here is a snippet of the Microsoft docs
Docker is for server applications—Web sites, APIs, messaging solutions and other components that run in the background. You can’t run desktop apps in Docker because there’s no UI integration between the Docker platform and the Windows host. That rules out running Windows Forms or Windows Presentation Foundation (WPF) apps in containers (although you could use Docker to package and distribute those desktop apps), but Windows Communication Foundation (WCF), .NET console apps and all flavors of ASP.NET are great candidates.
Check out the source
Upvotes: 19