Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assignment 2 - I192009 - Muhammad-Rizwan #248

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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 assignment-2/dev0.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 assignment-2/dev2.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 assignment-2/dev3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions assignment-2/i192009_m_rizwan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Q1.

1. Containers typically have faster startup times compared to Virtual Machines (VMs), which can take longer to initialize.
2. VMs tend to consume a significant amount of system memory, whereas containers are more efficient in their memory usage.
3. VMs are considered more secure because they don't share underlying hardware resources, while containers, by design, share some resources and are therefore considered less secure in certain scenarios.
4. VMs are a preferable choice when you need to utilize the entirety of an operating system's resources, while containers excel at maximizing application density on minimal server resources.
5. VMs generally have larger disk space requirements compared to containers.

# Q2.


docker network create assignment-2

![Alt text](dev0.png)
![Alt text](dev2.png)

docker run -d --name assignment-2-I192009 -p 9090:80 --network assignment-2 nginx:1.24.0

![Alt text](dev3.png)

# Q3.

I have run the above command and added screenshots above.