Docker File 1
Docker File 1
What is Docker?
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 :
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 can run in any os like Windows, Linux, macOS, etc. Docker uses the same OS and kernel as it is host
dependent.
It has low flexibility and scalability It has high flexibility and scalability.
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 .