0% found this document useful (0 votes)
1 views2 pages

Docker File 1

Docker is an open platform designed to develop and ship application code by separating application code from infrastructure, addressing issues related to versioning and dependencies. It offers advantages such as portability, consistency, isolation, and efficiency, with two main components: images and containers. Unlike virtual machines, Docker is lightweight, faster to reboot, and more efficient, making it suitable for microservices and rapid software updates.

Uploaded by

Max Ter Ion
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views2 pages

Docker File 1

Docker is an open platform designed to develop and ship application code by separating application code from infrastructure, addressing issues related to versioning and dependencies. It offers advantages such as portability, consistency, isolation, and efficiency, with two main components: images and containers. Unlike virtual machines, Docker is lightweight, faster to reboot, and more efficient, making it suitable for microservices and rapid software updates.

Uploaded by

Max Ter Ion
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Docker - Understanding document.

What is Docker?

●​ Open platform for developing and shipping application code.


●​ The main purpose of Docker is to separate the code of the application & infrastructure.
●​ The main reason for this is to beat the difficulties of having separate versions of code and
different dependencies.
●​ For an application running, we have to use the same version of code for the entire
application, and then we have updates based on that.
●​ Docker solves this issue by separating application code from infrastructure.

Advantages of Docker :
●​ Portability. It's easy to use the application and run it wherever we want to run it.
●​ Consistency. Irrespective of the infrastructure of what we are having and using, it runs
smoothly. The overall result and behavior will be good.
●​ Isolation. We can easily isolate the application’s code and logic from the infrastructure
and other dependencies.
●​ Efficiency. Docker helps to increase productivity. It helps us to be free from other
dependencies, updates, versions, and other vulnerabilities.

Components of Docker :

There are basically 2 components in Docker.


1.​ Images.
2.​ Containers.

Images & Containers :


●​ To run the application, we need specific dependencies and versions; all the other
requirements are grouped as in a Docker file .
●​ Then it will generate an image. It is nothing but a file that runs in the host
system, and it becomes a container.
●​ Generally When we install a Docker file, we generally don't need a separate
operating system. We do the process in the host system.
●​ One single image can turn into multiple containers.
●​ Each of these containers runs an image that is configured as a Dockerfile.
●​ Images are immutable. That means we cannot change it once it is
submitted.
●​ If we try to change the images, a new image will be generated and the old file will
get deleted/converted into a new image.
Differences between Virtual Machine and Docker :

Virtual Machine Docker


It does not share the system OS, as it needs a separate No separate os needs for Docker to operate on the
OS to be installed. device.

It is heavy in weight as it needs a separate OS that needs It is light in weight as it does not need an OS to be
to perform. installed.

It takes more time , more than 1 minute, to reboot as it It generally takes less time to reboot as it is light in
is heavy. weight.

It is more secure. It is less secure than a virtual machine.

It can run in any os like Windows, Linux, macOS, etc. Docker uses the same OS and kernel as it is host
dependent.

It is less efficient. It is more efficient.

It has low flexibility and scalability It has high flexibility and scalability.

It is slow in updating software. It is fast in software updating

It is used in cases that needs high isolation and security It is used in microservices, and it is light for deployment
measures of code .

You might also like