0% found this document useful (0 votes)
49 views

What Is Docker?: Drawback of Virtualization

Docker is a platform that allows applications to be packaged along with dependencies into containers. Containers are more lightweight than virtual machines and provide faster boot times and execution of applications. Docker uses Dockerfiles to define how images are built, images act as templates for containers which are running instances of images. Docker Compose and Swarm allow defining and linking together multiple containers to form distributed applications.

Uploaded by

Deepak P
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views

What Is Docker?: Drawback of Virtualization

Docker is a platform that allows applications to be packaged along with dependencies into containers. Containers are more lightweight than virtual machines and provide faster boot times and execution of applications. Docker uses Dockerfiles to define how images are built, images act as templates for containers which are running instances of images. Docker Compose and Swarm allow defining and linking together multiple containers to form distributed applications.

Uploaded by

Deepak P
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

What is Docker?

1. History Before containerization


Application and its dependencies used have their own virtual machine. In Virtualization
these machines used to run multiple applications on the same physical hardware.
Drawback of Virtualization
 bulky in size
 unstable performance
 long boot up time
 not portable
 tedious for software updates
 not compatible with CICD

2. Reasons to use containers


Containerization - is the process of packaging an application along with its required libraries,
frameworks, and configuration files together so that it can be run in various computing
environments efficiently.
 Containers have host’s operating system, so they share relevant libraries &
resources as and when needed
 Processing and execution of the apps are very fast, since applications
specific binaries and libraries of containers run on the host kernel
 Quick boot up time, as containers are light weight and faster than VMs

3. What is Docker?
Docker is a platform which packages an application and all its dependencies together
in the form of containers.
4. Dockerfile, Images & Containers

when the Dockerfile is built, it becomes a Docker Image and when we run the Docker
Image then it finally becomes a Docker Container.

Dockerfile: A Dockerfile is a text document which contains all the commands that a user can
call on the command line to assemble an image. So, Docker can build images automatically
by reading the instructions from a Dockerfile. You can use docker build to create an
automated build to execute several command-line instructions in succession.

Docker Image: In layman terms, Docker Image can be compared to a template which is used
to create Docker Containers. So, these read-only templates are the building blocks of a
Container. You can use docker run to run the image and create a container.

Docker Images are stored in the Docker Registry. It can be either a user’s local repository or
a public repository like a Docker Hub which allows multiple users to collaborate in building
an application.

Docker Container: It is a running instance of a Docker Image as they hold the entire package
needed to run the application. So, these are basically the ready applications created from
Docker Images which is the ultimate utility of Docker.

5. Docker Compose & Docker Swarm


Docker Compose is a YAML file which contains details about the services, networks, and
volumes for setting up the application. So, you can use Docker Compose to create separate
containers, host them and get them to communicate with each other. Each container will
expose a port for communicating with other containers.

Docker Swarm is a technique to create and maintain a cluster of Docker Engines. The Docker
engines can be hosted on different nodes, and these nodes, which are in remote locations,
form a Cluster when connected in Swarm mode.
6. Hands-On

You might also like