This document introduces Docker. It discusses that Docker uses containerization rather than virtualization, allowing applications and their dependencies to run in isolated containers that share the host operating system's kernel. It describes Docker's client-server architecture with containers built from images and run by the Docker daemon. Benefits of Docker include low overhead, speed, and portability of applications, while disadvantages include potential backup and management challenges for large numbers of containers.
2. Virtualization.
Containerization
What is Dockers?
Why do we need Dockers
Dockers Architecture
Dockers images
Dockers Data files
Dockers Compose
How Docker works?
Advantages and disadvantages of Docker.
Agenda:-
3. Virtualization is a process that
allows a computer to share its
hardware resources with multiple
digitally separated environments.
Each virtualized environment runs
within its allocated resources, such
as memory, processing power, and
storage.
Virtualization needs their own OS.
Virtualization:
5. Containerization is the advanced form
of virtualization.
Containers are lightweight and
contain everything or dependencies
needed to run the application like
libraries, System tools ,Code. so you
do not need to rely on what is
currently installed on the host
Containerization do not have own OS.
Containerization:
7. Dockers is a software platform that allows you to
build, test, and deploy applications quickly and
faster delivery of Application.
Dockers packages software into standardized
units called containers that have everything the
software needs to run including libraries, system
tools, code, and runtime.
What is Dockers?
8. Dockers containers do not use the guest
operating system. It uses the host
operating system.
Dockers containers are formed with
Dockers engines’ help, and these
containers have applications running in
them. Requirements for those
applications, such as binaries and
libraries, are also packed in the same
container.
Devops =dev+ops
Why do we need docker:
9. The architecture of Docker uses a client-
server model.
It consists of the
1- Docker Client
2- Docker daemon
3-Docker Registry/Hub.
Docker Architecture:
11. A Docker image is a read-only template that contains a
set of instructions for creating a container that can run
on the Docker platform.
It provides a convenient way to package up which you
can use for your own private use or share publicly with
other Docker users.
Docker Image:
12. Docker File is simply a text file which consists
of instruction to build docker images.
Docker File:
13. Docker Compose is a tool you can use to
define and share multi-container
applications. This means you can run a
project with multiple containers using a
single source.
Assume you're building a project with
NodeJS and MongoDB together. You can
create a single image that starts both
containers as a service – you don't need
to start each separately.
Docker Compose:
15. No pre-allocation of RAM.
Low Cost.
Light in Weight.
Run on physical H.W or on cloud.
You can re-use images
Take less time to create Container.
Advantages of docker:
16. No solution of Data backup and
recovery.
Difficult to manage large number of
containers.
Docker do not provide cross platform
compatibility.
Disadvantages of Docker: