Introduction to Docker

Soumya Pallebothula
3 min readJan 18, 2021

--

Docker

Docker is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly. With Docker, you can manage your infrastructure in the same ways you manage your applications. By taking advantage of Docker’s methodologies for shipping, testing, and deploying code quickly, you can significantly reduce the delay between writing code and running it in production.

Docker is mainly used for Fast, consistent delivery of your applications.

Docker architecture

Docker uses a client-server architecture. The Docker client talks to the Docker daemon, which does the heavy lifting of building, running, and distributing your Docker containers. The Docker client and daemon can run on the same system, or you can connect a Docker client to a remote Docker daemon. The Docker client and daemon communicate using a REST API, over UNIX sockets or a network interface.

Docker setup on Machine

1. Before installing Docker desktop, we must see the system requirements through the search of “install docker windows”.

2. When you click on the docker toolbox on the windows option, it gives you the complete procedure for the installation of the docker.

3. Click on “ download from docker hub “.

4. Then, sign up by creating your own docker Id, email, and password. Then the new webpage will open.

5. From this page, we can download the docker desktop for windows.

6. Also, through https://www.docker.com we can also be redirected to the same page.

7. When you click on the above link, the “get started “option will be shown. Click on that option and then download docker desktop for mac and windows.

8. In the process of installation, you will be shown on the configuration page. Click “ok “. After some time, the installation will succeed.

9. After installation, you’ll be shown the docker desktop on your home page.

10. When you click on the docker icon when it is running, you will come across a set of options like a sign-in option with your Id. Go through that and sign in.

11. After signing in with your own docker id, then go to the command prompt and check the version which you installed.

Components :

Docker software mainly consists of three components.

1. Software: the docker daemon(dockerd) is a persistent process that manages Docker containers and handles the objects. A Daemon can also communicate with other daemons to manage docker services.

2. Objects: To assemble an application in the docker, various entities are used which are known as objects.

Docker container

2.Docker image

3.Docker service

Registries: It is a repository for Docker images. To upload the images, docker clients connect to registries.

There are mainly two public registries:

1.Docker hub

2.docker cloud.

docker run :

The docker run command is to change the command that a container runs.

Docker engine:

It is a client-server application with three major components.

1. Server: it is a long-running program called a daemon process.

2. A Reset API: which specifies interfaces that programs can use to talk to the daemon and instruct it what to do.

3. A command-line interface(CLI): it uses the docker reset API to control or interact with the docker daemon.

Major Advantages of Docker

  1. More Efficiency-Docker enables more efficient use of system resources.
  2. Faster Delivery -Docker enables faster software delivery cycles.
  3. Portability-Docker enables application portability.
  4. Microservice Architecture-Docker shines for microservices architecture.
  5. Docker won’t fix your security issues.

Thank you..!!

--

--

No responses yet