Whenever you say, docker, it refers to Docker engine (DE), if you combine client and server functionality in a single block shown in Docker architecture diagram, that is " Docker engine". Docker runĬommand-line utility to launch your container, every container is an instance of an image.Įxample - $ docker run -i -t "image name" /bin/bash Docker Engine
Is a read-only template that contains the instructions to run an application as a container, such as config files, code, environment variables, dependent libraries and runtime. Docker daemon runs each instruction mentioned in dockerfile one by one and commits the result to build images. Dockerfileĭockerfile is a text document that contains all the instructions and syntax to build images. " docker pull" fetch images and " docker push" push images to configured registry either public or private. By default, Docker is configured to look for images in Docker hub but you can point it to your private registry too. you can have your private Docker registry also. Docker Hub/Registryĭocker Hub is a public registry (repository) store all Docker images and it can be used by anyone. The Docker daemon ( dockerd) listens for client APIs requests and manages all containers, images, volumes and networks. It is the core of Docker's architecture and responsible for heavy lifting tasks like building, running and then the distribution of Docker containers. Docker client can communicate with multiple Daemons. Docker client sends commands like " Docker run" using Docker API to Docker daemon which carries them out. Docker Architecture- Image Source Docker Clientĭocker client ( docker) is the primary way to connect Docker server or daemon locally (if client and server installed on the same server) or remotely. Docker client can communicate to local or remote Docker daemon using Rest APIs, over Unix socket and network interface. If you will ever see Docker's logo " Moby Dock" in future, you will relate all the above-mentioned theory, "where a whale is shipping containers using water transport mode" image source How Docker worksĭocker is based on a client-server architecture and contains below-mentioned componentsĪs mentioned earlier, Docker is a client-server architecture mainly composed of Client, Docker daemon and Registry.
Same applies to software, now Developer's just need to make a package of all components and dependent libraries of software and it can be shipped/deployed using Containers, Docker resolves this basic problem of developers. Now your product can be shipped via water or air, doesn't matter as it is in the container and compatible with all modes of transportation. They resolve this using '" Big Containers", so if you are a businessman and you want to ship your product to rest of the world, you just need to wrap it as per container standards, then you don't need to worry about its shipping method. The classic example of the shipping industryĪ very old problem of the shipping industry relates to it, where transportation of goods of different size, shape and requirement to a different location of the world, was really a challenge. It is really a nightmare for developers to make every software compatible with all hardware and operating system. Software is a complete stack of Frontend, backend components, Database and library dependencies.
That software code is working on one platform, while it's not working on others due to compatibility issues. If you have used any software in your life, I bet you have faced this issue sometimes in your life. Generally, there are four phases of the software development lifecycle Design, Develop, Deployment and testing/release. 10 Conclusion What is Docker and who created Dockerĭocker is a leading software program for building applications based on containers and launched in 2013 as an open-source project by Solomon hykes (Founder of Docker).Ĭontainers can be treated as (boxes) which allows developers to deploy an application with all dependencies and libraries in a single package and it's isolated to another application environment but uses the same operating system kernel.8 Why Docker is bad and should not be used?.
6 Install Docker on Windows - Step by Step.5 What is Docker compose, Docker Swarm and Kubernetes.1 What is Docker and who created Docker.