Virtualization is the technology which can simulate your physical hardware (such as CPU cores, memory, disk) and represent it as seperate machine. It has its own Guest OS, Kernel, process, drivers and etc. Therefore, it is hardware level virtualization. Most common technology is VMware and VirtualBox
Containerization is os-level virtualization. It doesn't simulate the entire physical machine. It just simulate the OS of your machine. Therefore multiple applications can share the same OS kernel. Container play similar roles to virtual machine but without hardware virtualization. Most common container technology is Docker
Sr. No. | Key | Virtualization | Containerization |
---|---|---|---|
1 | Basic | Virtualization is the technology which can simulate your physical hardware (such as CPU cores, memory, disk) and represent it as seperate machine | Containerization is os-level virtualization. It doesn't simulate the entire physical machine |
2 | Detaching Layer | It used Hypervisor to detach the physical machine | It used docker engine in case Docker |
3 | Isolation Level | It has hardware level isolation so fit is fully secured | It has process level isolation |
4. | LightWeight | It is heavyweight | It is very lightweight |
5. | Portable | It is not portable | It is very portable. We can build, ship and run anywhere |