Interactive Session 9-Cloudcomputing
Interactive Session 9-Cloudcomputing
on
Cloud Computing
noc25-cs11
by
Mainak Chakraborty
1. VM & Docker
2. Hands-on Session : ECS
Points to Remember:
• Total 5 more Discussion sessions to be taught
lectures and Tutorials
• Any specific problem, please upload in the
discussion forum, I will try to reply within 24
hours
• PPT and Video will be shared with everyone
• Assignments will not be solved but similar
problems will be solved.
Virtualization
•Definition: Virtualization is the creation of virtual
resources such as servers, storage devices, and
network resources.
•Goal: Optimize resource usage, improve scalability,
and isolate environments.
•Types: Hardware Virtualization, OS Virtualization,
Network Virtualization, Storage Virtualization.
•Types of Virtualization
•Hardware Virtualization: Creates virtual machines
(VMs) with isolated operating systems on physical
hardware.
•OS Virtualization (Containers): Shares host OS kernel,
lightweight, faster startup compared to VMs.
+++
LINK : https://www.cloud4u.com/blog/virtualization/
VM vs. Container
• Containers run on
• Virtual Machines
a shared OS kernel
simulate entire
• lighter weight
hardware stack (CPU,
compared to VMs.
RAM, storage).
• Hypervisor manages
VMs (e.g., VMware,
Hyper-V, KVM).
LINK : https://www.netapp.com/blog/containers-vs-vms/
What is/are the reason(s) to opt for VM migration in the cloud
computing paradigm?
• To remove a physical machine from service: VMs may be migrated to shut down or maintain a physical server
(e.g., for repairs, upgrades, or decommissioning).
• To save power consumption: In energy-aware systems, VMs are moved to consolidate workloads onto fewer
machines, allowing others to be powered down.
• To relieve the load on the congested hosts: One of the most common reasons — migrate VMs from
overloaded hosts to underutilized ones to improve performance.
LINK : https://www.cloud4u.com/blog/virtualization/
Docker
•In Docker:
•Configuration effort involves setting up the environment — like writing a Dockerfile, specifying dependencies,
OS, and app code.
•Resource management (CPU, memory, storage, etc.) is handled separately by the Docker Engine or orchestrators
like Docker Compose, Kubernetes, or Swarm.
LINK : https://www.cloud4u.com/blog/virtualization/
VM vs. Container
LINK : https://www.netapp.com/blog/containers-vs-vms/
What is Docker ?- Platform as a Service (PaaS)
•Docker is an open-source containerization platform.
•Allows packaging, shipping, and running applications
in isolated containers.
•Components:
•Docker Engine (runtime)
•Docker Images (blueprints for containers)
•Docker Containers (running instances of images)
Docker Components
• Docker file: Script used to build Docker images
automatically.
• Docker Image: Read-only template containing
the application, libraries, and dependencies.
• Docker Container: Lightweight, executable
instance created from Docker Image.
• Docker Engine: Runs and manages Docker
containers.
LINK : https://www.geeksforgeeks.org/docker-instruction-commands/
• Docker is the
foundational
containerization
technology that lets you
build and run
containers.
• Docker Hub is a registry
where you can store,
share, and retrieve
Docker images.
• Docker Compose is a
tool for configuring,
running, and managing
multiple containers
together in an
application.
• What’s the Difference Between Docker
Images and Containers?
LINK : https://aws.amazon.com/compliance/shared-responsibility-model/
•A Dockerfile is a text-based document that's
used to create a container image. It provides
instructions to the image builder on the
commands to run, files to copy, startup command,
Docker File
and more.
LINK :
Hands-on Session Checklist
• AWS Free-tier Account
Step 1
• IAM User
Step 2 • MFA
https://aws.amazon.com/ecr/
AWS ECS
https://aws.amazon.com/ecs/
How does it work ?
https://docs.aws.amazon.com/AmazonECS/late
st/developerguide/Welcome.html
AWS Fargate
https://aws.amazon.com/fargate/