namespace = used for isolating one docker container with other
// fungsi :
restrict container access and visibility
to other resources on system
=======
docker images :
lightweight, standalone, executable packages that include everything u need to run a piece of software
^ code for software, runtime, system tools and library
=======
docker file :
- simple document that provide instruction for creating image
========
docker container :
- instances of images that run in the docker engine
^ tiap container terisolasi dan cuma memiliki environtment that includes only the necessary components.
========
klo di vm ada hypervisor type 1 // baremetal
- run directly on host hardware
ada jg hypervisor type 2 // hosted hypervisor
- run directly on top of an existing operating system
virtual hardware : - emulated components of a VM
terdiri dari virtual cpu, virtual memory, virtual storage, virtual network interfaces
hypervisor responsibility is for managing and allocating these virtual resources to each VM
guest OS = individual OS that run inside each VM
========
vm use case :
- diverse operating system on 1 physical hardware
- 1 running linux, 1 running windows
- isolation // separate kernel and separate OS
- suited for running legacy aplication that rely on specific OS Version / configuration
docker use case :
- ideal for microservices
- fast startup times
- ability to package and distribute dependencies
- rapid development and deployment. ability to use docker container to quickly build deploy and scaleup
- smaller footprint than vm / resource efficiency == more container able to run on the same piece of hardware with less overhead
No comments:
Post a Comment