Dockers
Dockers
=project complete!!!
Container architecture:
Docker vs virtual machine:
Docker images:
base image
sub images
DEFINITION:
Docker images are templates used to create Docker containers. A Docker image includes
everything needed to run an application: code, runtime, libraries, and configurations.
Docker Image: A read-only template that contains the application and its environment. It's
like a blueprint for creating containers.
TYPES:
BASE IMAGE:
Base Image: The foundational layer of an image. It contains the basic operating system (like
Ubuntu, Alpine, etc.) without any application-specific code. Every Docker image starts from a
base image.
SUB IMAGE:
Sub Image: An image created from a base image by adding layers. For example, if you take
a base image like Ubuntu and add Python, your resulting image becomes a sub image.
WHAT IS DOCKER?
Docker is a opensource platform tool designed to manage the containers, which allow us to
build the application in a container with required libraries, binaries, dependencies to run the
application, ship the container and run anywhere.
Docker architecture:
What is Docker’s daemon?
At the very core of Docker‘s operation lies the Docker daemon. It is the service responsible for
orchestrating container lifecycle management. It means that the docker daemon handles
various tasks including container creation, execution, and monitoring. In a nutshell, it acts as a
bridge between the Docker client and the Docker engine following Client-Server Architecture.
Docker daemon executes commands issued by the client by translating them into actionable
operations within the Docker environment.
Networking and Storage: Docker daemon enables seamless integration with resources
with the underlying Operating System. Docker Daemon provides containers with
access to network ports, storage volumes, and other essential components.
Push & Pull images from registry: When a requested image or container isn’t already
available locally, Docker daemon interacts with Docker Registry to fetch and deploy the
requested resources.
COMPONENTS OF DOCKER:
Docker client and server
Docker image
Docker registry
Docker container
DOCKER CLIENT-SERVER:
This is a command-line-instructed solution in which you would use the
terminal on your Mac or Linux system to issue commands from the Docker
client to the Docker daemon. The communication between the Docker client
and the Docker host is via a REST API. You can issue similar commands, such
as a Docker Pull command, which would send an instruction to the daemon
and perform the operation by interacting with other components (image,
container, registry).
ADVANTAGES OF DOCKER:
Rapid Performance
Light weight
Isolation {diff version sws)
Cost saving