diff --git a/I20-0702-Ahmad-Maqbool.md b/I20-0702-Ahmad-Maqbool.md new file mode 100644 index 00000000..7da36796 --- /dev/null +++ b/I20-0702-Ahmad-Maqbool.md @@ -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) + diff --git a/devopscontainerrun.png b/devopscontainerrun.png new file mode 100644 index 00000000..98f28b2f Binary files /dev/null and b/devopscontainerrun.png differ diff --git a/logs.png b/logs.png new file mode 100644 index 00000000..f75bff2c Binary files /dev/null and b/logs.png differ