Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

asp.net core in Docker container vs Azure App service

We can obviously now deploy our asp.net core apps into docker container. I went through docs about 'how to do it' but i couldn't find some proper explanation about 'why to do it'?

Could anyone explain why would one choose deploying asp.net core app to docker container instead of azure app service?

like image 247
dee zg Avatar asked Sep 04 '17 04:09

dee zg


People also ask

Does Azure App Service use containers?

Working with a container image in Azure App Service is straightforward. Start with a container with your code in it stored in the Azure Container Registry. There's support for both Windows and Linux containers, although in practice, most of your applications will be running on Linux.

Can ASP.NET application be run in Docker container?

Choose the docker option to run the application as shown in the following image. After clicking on the docker option, it will build code, create a docker image as well as a docker container and run the application inside the docker container without using the docker commands on the windows command prompt.

What is the difference between Azure and Docker?

The Docker hub is an open-source container platform. However, unlike Azure, it is designed to create containers, not run them. It works very well with IronWorker, for batch processing. On the plus side, a Docker image is very simple to use, offers excellent runtime, and provides consistency across the board.

Does Azure use Docker containers?

Overview. The Docker Azure Integration enables developers to use native Docker commands to run applications in Azure Container Instances (ACI) when building cloud-native applications.


1 Answers

Obvious reason to favor docker image over app service would be portability. If you want to switch to other cloud platform from Azure, you simply need to deploy your preconfigured docker image to other platform's container management service and it will just work there, whereas if you want to move your app from app service to some equivalent service offering in some other cloud platform, you'll need to spend time learning about how it works and then configuring it all over again in the new place.

like image 200
twinmind Avatar answered Sep 16 '22 11:09

twinmind