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
27 changes: 27 additions & 0 deletions I20-0702-Ahmad-Maqbool.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Q1)
Docker Containers:

Lightweight and efficient.
Share the host OS kernel.
Highly portable.
Ideal for microservices.
Faster startup and lower resource usage.
Managed with Docker tools.
Virtual Machines (VMs):

Heavier and resource-intensive.
Run their own OS kernel.
Less portable due to full OS.
Better for monolithic apps.
Stronger isolation.
Managed with hypervisor tools.

Choose Docker containers for agility and efficiency, VMs for strong isolation and compatibility with legacy applications.

Q2)
docker network create assignment-2
docker run -d -p 9090:80 --network assignment-2 --name assignment-2-I20-0702 nginx:1.24.0

Q3)![](logs.png)
![](devopscontainerrun.png)

Binary file added devopscontainerrun.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 logs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.