DOCKER

doc

Hi all, welcome to my blog!!!! In this post, I would be taking all of you through one of the booming technology called DOCKER…so, what is docker??

here we go,

Docker is most popular technology which has emerged in March 2013 .

I had no clue what docker was about when I started with it. I’ve spent around a month to go through and understand the basic concepts of docker. It took around one and half month to Install it on Linux machine.

Docker is an open source project which started as a side project at dotcloud, a platform as a service (paas)company, which is wriiten in GO language.

The term Docker can refer to

  • The Docker project as a whole, which is a open platform for developers and sysadmins to develop, ship, and run applications .

  • The docker daemon process running on the host which manages images and containers.

  • Docker is basically a container engine which uses the Linux Kernel features like namespaces and control groups to create containers on top of an operating system and automates application deployment on the container.

After going through docker, I found few advantages of it,which are as follows,

  • Docker is easily installed on any operating system via a simple package on Linux operating system.

  • Docker is incredibly fast and it can run on host with compatible Linux Kernel.

  • Docker images are portable to any operating system, like virtual machines, but they’re much more lightweight.

  • Docker images are built from extremely lightweight base images of Linux that have virtually nothing installed in them.  The Ubuntu Docker image is 188mb, which is remarkably small for an OS these days.

  • Images can be built through Dockerfiles in an automated fashion, where Dockerfiles is a text document that contains all the commands a user could call on the command line to assemble an image. Using docker build users can create an automated build .

  • Images can easily be pulled from public or private repos on Docker Hub with no extra work needed to set that up in the Docker client. This would quickly provide an easy distribution method for any images that are created.

  • Docker can also be said as a new container technology makes it easy to package and ship programs.The Docker gives instant application portability.

  • As a developer point of view ,It can build once and run anywhere.

  • As a administrator point of view,it can configure once and run anytime and  Makes the entire life cycle more efficient & consistent.

Docker Components:

Docker is composed of following main four components

  1. Docker Client and Daemon.

  2. Images

  3. Docker registries

  4. Containers

working of  docker

  • Docker has a client-server architecture.

  • Docker Daemon or server is responsible for all the actions that are related to containers.

  • The daemon receives the commands from the Docker client though cli or REST API’s. Docker client can be on the same host as daemon or it can be present on any other host.

  • Images are the basic building blocks of Docker. Containers are built from images. Images can be configured with applications and used as a template for creating containers.

  • Docker registry is a repository for Docker images. Using Docker registry, you can build and share images with your team. A registry can be public or private.

  • Docker Inc provides a hosted registry service called Docker Hub. It allows you to upload and download images from a central location.

  • Container is the execution environment for Docker. Containers are created from images. It is a writable layer of the image.

The best feature of Docker is collaboration. Docker images can be pushed to a repository and can be pulled down to any other host to run containers from that image. Moreover Docker hub has thousands of images created by users and we can pull those images down to our hosts based on our application requirements.

This is all about the basics of docker….Hope this was helpful ..

Thank You.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s