What is Docker & why docker is useful for deployment ?

What is Docker & why docker is useful for deployment ?

We all have heard about docker and when somebody ask about It there is only one picture which comes in everyone’s mind. That is ship containing multiple containers for export and import of goods and other material from one place to other.

ship containing multiple containers

But have you ever heard about docker technology?

Yes, You read it right…..

If you are tech person or working in IT industry. You would have come across a word docker. Nowadays, it is booming around the world. So, let’s understand what is docker and how to use it.

Content :

  1. What is Docker?
  2. How to use Docker and Docker Hub?
  3. Benefits of using Docker?

So, Let’s start…..

Docker is a set of platform as a service products that uses OS-level virtualisation to deliver software in packages called containers.

Containers can be considered as set of software or resource bundled together to communicate with each other through well-defined channels. In other words you keep all your software requirements in one place or isolate it in a place called containers.

For instance, 

There is a blog which you have to deploy on live server. Now, for that you will need to understand project requirements and dependencies.

Ideally, for a blog you need a front-end(HTML,CSS,JavaScript) and back-end (PHP,MySQL)and a server(Apache/Nginx) using this you will host your blog/project for users to access it world wide. Next, you will look for hosting service provider where you could host your project. But if you notice you will have limited configuration of server which is also fixed. For example, Php v7, Mysql or linux based operating system with lets say 2GB of storage. 

Now imagine, your blog has become popular in the city and you have good visitors in your blog. Now you want to expand it to a place where visitors or users can purchase their choice of merchandise. To achieve this you will look for better server and you will also need to upgrade your server configuration as you have responsibilities to handle more traffics online then before. Simultaneously, you will upgrade your website with latest technologies or lets say you might change your website so that it could become a smooth place for visitors to read their articles and shop online. For this, either you will need to contact your hosting provider for up-gradation of server or you will buy new server. In most of the cases, people buy new server as it becomes difficult for their hosting provider to upgrade the existing servers. It also increase your server cost. 

So, to overcome with this problem we implement docker and with this my second topic starts here. which is…..

How to Use Docker?

To implement.

First Step :

You will require a server space with Linux or windows operating system and an IP address to access your files from server. Further, you can setup your resources according to your requirements. 

Second Step :

You will need to install docker into that system you can download docker setup file by clicking this link official website.

Third Step :

Gather your projects requirements or specifications. If we continue with the above given example. 

We will required a server like Apache / nginx. which ever you prefer. Mysql for backend and php or python which ever scripting language we will be using in our project.

These were our project’s requirements. One thing we will need to understand that docker works based on their images.

Now, what are images….

Docker images can be considered as light weight files which works with its container to unlock the docker potential. Each image provides an infinitely reproducible virtual environment. Docker hub has lots of images for each and every services we need to run our project. For example, According to our above project’s requirement. We will require three images to connect with docker and those images are listed below:

1) Apache Server Image

2) PHP Image

3) MySQL Image

Fourth Step :

In this step, we will need to connect these images together to run in synchronise manner with container. In next article, we will learn how to connect docker images together.

Fifth Step :

This would be our last step as in this step will need to RUN our docker images as a container and we will be able to access our project world wide. With this our second topic how to use Docker ends here and our next topic benefits of docker starts from here.

Note :

Conclusion :

In our next article, we will learn more about It and Benefits of Using It.
So, Keep reading and support me by sharing this articles with your friends or colleague.

Thanks for reading.

Don’t forget to put your suggestions or advice in a comment section below.
Would appreciate it and helpful for my improvement.


2 thoughts on “What is Docker & why docker is useful for deployment ?

Leave a Reply

Your email address will not be published. Required fields are marked *