DevOps Introduction
What is Docker?
Let me explain to you with a live example, many times we have seen that developer is running an application in his system and the application is running all right, but when the developer deploys code in the client system the code may not work. at that moment docker comes into the picture to provide a solution for the problem
Docker is platform independent virtual environment that is used to run an app
It is a combination of Virtualization, lightweight, and reusability. let me explain you by example
Virtualization
When developers develop code it will be using certain dependencies and versions of different systems that the client system must not have, so to overcome this issue we will create a virtual env in which all required dependencies and software are installed. Docker provides this virtual environment which is isolated from the host system and contains all the necessary dependencies required to run the application.
Lightweight
Docker is a lightweight platform as it uses the host operating system to run the application. Unlike traditional virtual machines, Docker does not require a separate operating system for each application. Instead, it shares the host operating system with other containers, making it more efficient and easier to manage.
Reusability
One of the key features of Docker is its ability to create and share images of the virtual environment. These images can be reused by other developers to create their containers with the same dependencies and configurations, which ensures consistency across different environments.
In summary, Docker is a platform-independent virtual environment that provides a lightweight, isolated, and reusable environment to run applications, making it easier for developers to deploy their code in different environments without worrying about compatibility issues.
Hands-On DOCKER
Docker file is nothing just