What is Docker ?
Docker is a set of platform as a service product that uses OS-level virtualization and it binds or we can say combines all the necessary packages required for the application to run in the form of an image and runs the container with the help of that image.
Virtual Machine
A virtual machine is associate emulation of a system. Virtual machines square measure supported computer architectures and supply practicality of a physical computer. Their implementations might involve specialized hardware, software, or a mixture.
Docker Containers
A container may be a normal unit of computer code that packages up code and everyone its dependencies that the application runs quickly and faithfully from one computing setting to a different. A docker image may be a light-weight, standalone, feasible package of computer code that has everything required to run associate application: code, runtime, system tools, system libraries and settings.
Difference Between Containers & Virtual Machine
CONTAINER | VIRTUAL MACHINE |
---|---|
Isolated group of processes managed by shared kernel. | OS that shares host hardware via a hypervisor |
Images measured in MB+ user’s application. | Images measured in GB+ user’s application. |
It is very fast. | It is very slow. |