From 073be5eba64052bddb88d78fc3110553f6a5bb3e Mon Sep 17 00:00:00 2001 From: shhdh <136026934+ShahidTechception@users.noreply.github.com> Date: Sun, 8 Oct 2023 20:46:24 +0500 Subject: [PATCH] Add Assignment 2 answers for I20-0980 --- I20-0980-ShahidHameed.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 I20-0980-ShahidHameed.md diff --git a/I20-0980-ShahidHameed.md b/I20-0980-ShahidHameed.md new file mode 100644 index 000000000..335db3f9b --- /dev/null +++ b/I20-0980-ShahidHameed.md @@ -0,0 +1,24 @@ +# Assignment 2 - I20-0980 - Shahid Hameed + +# Docker vs VMs +Docker Containers: +Isolation: Lightweight, process-level isolation on the host system. +Resource Efficiency: Efficient resource sharing via the host OS kernel. +Speed: Rapid start-up within seconds, minimal resource usage. +Image-based: Construction from lightweight, standalone images. + +Virtual Machines (VMs): +Isolation: Hardware-level isolation, each VM with its OS. +Resource Overhead: Heavier due to a full OS and virtualized hardware. +Start-up Time: Longer start-up time, akin to booting a complete OS. +Hypervisor: Relies on a hypervisor, adding overhead and complexity. + +Comparison: +Resource Efficiency: Containers excel with shared OS kernel. +Isolation Level: VMs offer stronger isolation with independent OS. +Portability: Containers, more portable due to lightweight design. +Scaling: Containers scale easily with quick start-up and low resource usage. + +# Docker Commands + +docker run -d --name assignment-2-I20-0980 -p 9090:80 --network assignment-2 nginx:1.24.0