Docker...
Rakesh Kumar
Test engineer|Deployment|HSS| HLR| IMS| 5G| SIP| SDP|HTTP2|PFCP|Diameter protocol|IMS Deployment| Docker &Kubernetes|
Container:
A container is a standard unit of software that packages up code and all its dependencies so the application runs quickly and reliably from one computing environment to another. A Docker container image is a lightweight, standalone, executable package of software that includes everything needed to run an application: code, runtime, system tools, system libraries and settings.
or we can say in other words...
A container is a bundle of Application, Application libraries required to run your application and the minimum system dependencies.
Docker:
Docker is a containerization platform that provides easy way to containerize your applications, which means, using Docker you can build container images, run the images to create containers and also push these containers to container registries such as DockerHub, Quay.io and so on.
In simple words, you can understand as containerization is a concept or technology and Docker Implements Containerization.
Advantage of Docker:
it took very less time to create the container.
Disadvantage of docker:
Docker Architecture:
The above picture, clearly indicates that Docker Daemon is brain of Docker. If Docker Daemon is killed, stops working for some reasons, Docker is brain dead.
Docker Lifecycle:
We can use the above Image as reference to understand the lifecycle of Docker.
领英推荐
Components of Docker:
Docker Daemon:
Docker client:
Docker Host:
Docker host is used to provide an environment to execute and run applications it contains the docker daemon images containers networks and storages.
Docker Hub:
Docker Image:
Dockerfile:
Dockerfile is a file where you provide the steps to build your Docker Image.
Docker registry:
A Docker registry stores Docker images. Docker Hub is a public registry that anyone can use, and Docker is configured to look for images on Docker Hub by default. You can even run your own private registry.
When you use the docker pull or docker run commands, the required images are pulled from your configured registry. When you use the docker push command, your image is pushed to your configured registry. Docker objects
When you use Docker, you are creating and using images, containers, networks, volumes, plugins, and other objects. This section is a brief overview of some of those objects.
Install Docker:
You can create an Ubuntu EC2 Instance on AWS and run the below commands to install docker.
sudo apt update
sudo apt install docker.io -y