Docker - For Beginner Part 2

Docker - For Beginner Part 2

Architecture Of Docker

This blog will consist of basic terminologies from the architecture of docker and the eco-system of docker.

Docker Artectiture :

  1. The user will create a Docker File which will include the task and requirements for the image.

  2. Once the Docker file is created, it will be provided to the Docker engine to execute it and create a Docker image

  3. The Docker engine will create a container by using the Docker image

  4. Docker images can be shared with multiple users by pushing the image to the central repository i.e Docker Hub

  5. Once the image is available on the docker hub, users who have access to that repository can able to access the image and create their container like user 1.

Docker Eco-System :

  1. Docker Client :

    It's a primary way to interact with the docker server/daemon.
    Docker File is created.
    It interacts with the docker engine using CLI and API.

  2. Docker Server
    It runs on Host OS i.e where the docker engine is installed
    It is responsible for creating the docker images with the Docker File.
    Containers are created with the same docker images.
    It also communicates with other daemons for other tasks.

  3. Docker Hub
    It stores the images in a private or public repository.
    Users can download the images stored in the docker hub and use them for creating the container.

  4. Docker Image
    It's a read-only binary template.
    Dependency and Requirements are mentioned in it.

  5. Docker Compose:
    It is used for running multiple containers.

Way to create the image :

  1. Take an image from the docker hub.

  2. Create an image from the docker file.

  3. Create an image from the existing container.