Docker for .net developers

Until or unless you are living in a cave, it is hard to not to know about docker. Microsoft has made sure it is marketing the technology with a various possible channel. The problem with this approach people often tends to read between the lines and understood docker as another Virtual machine. So in this blog post, I am going to explain it with three use cases where it fits appropriately and how to make an informed decision when it comes to docker.

Use Case 1: General Use/Ops.

Lets us take an example of installing Elastic Search/Kibana for adding a search to the application. It may be a daunting task. You need to download two MSI from the elastic search website and make sure it is on a right operating system, and possible the folders and IP are in allowed to created and so on.

docker pull nshou/elasticsearch-kibana

This pulls/download the latest search of software and makes it available for local use.Next step you can run the application by running the below command.

docker run -d -p 9200:9200 -p 5601:5601 nshou/elasticsearch-kibana

That’s it and now you can elastic search and kibana running on the machine with the optimal setting. This easiness which docker brings in makes it Play store/App store for distributing the application which is hard for doing before.

Use Case 2: Works on my machine.

In this use case let’s take a simple scenario where a developer uses file logging and stores the log file in a C:\logs drive, but we forgot to create a folder or not have permission to create it. Now, this is a classic problem of the developer saying Works in my machine.

Use Case 3: Modernizing the application platform

As I told docker differs from VM in a way that Virtual machines are Hardware partitions where is docker is an OS partition.

I build intelligent Web Apps

I build intelligent Web Apps