1

I’m just starting out with containers and was wondering if I can run my .NET program in a container. What’s the recommended way to do this?

2 Answers2

0

If you are talking about a Web application, you could use .Net Core, that runs on Windows and Linux (Desktop, VM, Docker).

Some useful links:

Community
  • 1
  • 1
Edwin Miguel
  • 409
  • 4
  • 11
  • The application does not have to be a web application, you can also write a console application which has nothing to do with the web and run it in a container afaik – John Doe Mar 14 '18 at 16:57
0

Yes, you can containerize .NET Framework apps and run them in windows containers: https://www.docker.com/products/windows-containers

I would recommend using .NET Core if your codebase isn't huge (either a small app or a greenfield project) and you don't need any .NET Framework/Windows specific libraries.

Peter Sandor
  • 143
  • 1
  • 7