Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Screenshot 1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshot 2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions i20-0562-Usman-Kamal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Assignment 2 Answers:


Question 1: Explain Docker Containers vs VMs

Answer 1: Docker Containers and VMs may serve a similar prupose but they have some fundamental differences that are given below:
1. Containers are lightweight becase they share the OS kernel. A container uses host OS for system calls. On the other hand, VMs are heavyweight because each VM contains a full OS.
2. Containers provide us with process and file system isolation whereas VMs provide full isolation. Each VM runs its own OS.
3. Containers use few resources because they don't require a full OS. On the other hand, VMs consumes more resources because each VM runs a complete OS.
4. Containers are very fast in speed and start almost instantly. Vms take longer because they need to start a complete OS.




Question 2:

For this, we will use the following command:
docker run -d --name assignment-2-I20-0562 -p 9090:80 --network assignment-2 nginx:1.24.0


Question 3:
Screenshots are attached in the same folder as this.