.Net core application on Linux



.Net core application on Linux and Docker containers on Linux. Which of the two options is better?

I have a scenario where I need to run a .Net core application on Linux but not sure which way to go. Can someone help me?



I don’t really understand your question.

Get your .net core application running on Linux first, then you can package it up into a docker container.

Docker containers still run the underlying OS’s kernel.


The two scenarios

  1. Run the .NET core application on Linux itself
  2. Run the .NET core application in a container that runs on Linux

Hope that is clear.

Which option is better?



There is not better. It depends on the use case. Docker is “just” packaging.
If your application is a fit for docker, then go for it.

.NET Foundation Website | Blog | Projects | Code of Conduct