Sabitlenmiş Tweet

Basics of Docker Architecture
------------------------------------
The below are the important components of Architecture.
Docker Client -->
This is where we run commands like docker build, docker pull, docker push, docker run etc.
When we run commands, the client sends a REST API call to Docker daemon.
Docker Daemon (dockerd or containerd) -->
This is the engine which builds images, creates containers, push&pull images and manages networking & storage etc.
It Accepts REST API calls from clients and perform the required function.
Docker Images -->
Read-only templates used to create containers. The Applications along with it's libraries and other required components would be packaged as Docker image which will be used to create containers.
Docker Containers -->
Running instances of images that execute applications.
Docker Registry -->
A remote repository (like ARtifactory registry/Nexus Riegistry/ Docker Hub etc) which stores docker images.
The flow is explained in the diagram as below.
1. docker command is executed in the client.
docker build --> For building docker images by using Dockerfile and Application code and libraries etc.
docker pull --> For getting docker image from Docker Registry
docker push--> For pushing docker image to Docker registry
docker run --> To create and run the container.
docker stop/start --> To stop and start the docker container respectively
2. Client sends REST API request to daemon.
3. Daemon pulls image from registry if not present.
4. Daemon push the image(if we execute docker push command) to registry.
5. Container is created and started(if we execute docker run command)

English

























