What is Docker?
Docker is an open-source platform that allows developers to build, package, ship, and run applications inside lightweight, portable containers. A container includes the application code, runtime, libraries, and dependencies, ensuring the app runs the same way regardless of the environment (development, testing, or production).
Why is Docker used?
-
Consistency across environments – “It works on my machine” works everywhere.
-
Faster development & deployment – Containers start quickly and simplify CI/CD pipelines.
-
Isolation of applications – Each app runs in its own container without interfering with others.
-
Efficient resource usage – Containers share the host OS kernel, making them lighter than virtual machines.
-
Easy scalability – Containers can be replicated or orchestrated to handle load efficiently.