0% found this document useful (0 votes)
26 views

B31CCL Exp 9)

The document discusses experimenting with containerization using Docker. It provides background on containers and virtual machines. The steps involve installing Docker, creating a Dockerfile, building an image, and running the image. Students are asked questions about containers and Docker images and containers to demonstrate their understanding.

Uploaded by

vaishnavishitre
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

B31CCL Exp 9)

The document discusses experimenting with containerization using Docker. It provides background on containers and virtual machines. The steps involve installing Docker, creating a Dockerfile, building an image, and running the image. Students are asked questions about containers and Docker images and containers to demonstrate their understanding.

Uploaded by

vaishnavishitre
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Terna Engineering College

Computer Engineering Department


Program: Sem VI

Course: Cloud Computing Lab (CSL605)

PART A
(PART A: TO BE REFFERED BY STUDENTS)

Experiment No.9
Title: To study and Implement Containerization using Docker

A.1 Objective: To know the basic differences between Virtual machine and Container. It
involves demonstration of creating, finding, and building, installing, and running
Linux/Windows application containers inside local machine or cloud platform. A.2
Prerequisite:

Knowledge of Networking, Distributed Computing and knowledge of Software


architectures.

A.3 Objective:

Objectives this experiment is to provide students an overview AWS, its Features and
Services.

A.4 Outcome: (LO3)

After successful completion of this experiment student will be able to run Linux/ windows
application containers inside local machine.

A.5 Theory :

Docker is the containerization platform that is used to package your application and all
its dependencies together in the form of containers to make sure that your application
works seamlessly in any environment which can be developed or tested or in production.
Containerization:
Containerization is OS-based virtualization that creates multiple virtual units in the user
space, known as Containers. Containers share the same host kernel but are isolated from
each other through private namespaces and resource control mechanisms at the OS level.
Container-based Virtualization provides a different level of abstraction in terms of
virtualization and isolation when compared with hypervisors. Hypervisors use a lot of
hardware which results in overhead in terms of virtualizing hardware and virtual device
drivers. A full operating system (e.g -Linux, Windows) runs on top of this virtualized
hardware in each virtual machine instance.
But in contrast, containers implement isolation of processes at the operating system level,
thus avoiding such overhead. These containers run on top of the same shared operating
system kernel of the underlying host machine and one or more processes can be run
within each container. In containers you don’t have to pre-allocate any RAM, it is allocated
dynamically during the creation of containers while in VMs you need to first pre-allocate
the memory and then create the virtual machine. Containerization has better resource
utilization compared to VMs and a short boot-up process. It is the next evolution in
virtualization.
Containers can run virtually anywhere, greatly easy development and deployment: on
Linux, Windows, and Mac operating systems; on virtual machines or bare metal, on a
developer’s machine or in data centers on-premises; and of course, in the public cloud.
Containers virtualize CPU, memory, storage, and network resources at the OS level,
providing developers with a sandboxed view of the OS logically isolated from other
applications. Docker is the most popular open-source container format available and is
supported on Google Cloud Platform and by Google Kubernetes Engine.

After you understand the concept of Docker, now let’s get into the implementation. There
are several steps that we will do:

1. Install Docker

2. Create a file called Dockerfile


3. Build the image

4. Run the image

Useful link:

https://docs.docker.com/

PART B
(PART B: TO BE COMPLETED BY STUDENTS)

(Students must submit the soft copy as per following segments within two hours of
the practical. The soft copy must be uploaded on the ERP or emailed to the concerned
lab in charge faculties at the end of the practical in case the there is no ERP access
available)

Roll No.: B31 Name: VaIshnavi SHitre

Class: TE-B(COMP) Batch: B2

Date of Experiment: 01/04/2024 Date of Submission: 02/04/2024

Grade :

B.1 Question of Curiosity:

(To be answered by student based on the practical performed and learning/observations)


Q.1 What is containerization?
Ans:
Containerization is a software deployment process that bundles an application’s code with all
the files and libraries it needs to run on any infrastructure. Traditionally, to run any
application on your computer, you had to install the version that matched your machine’s
operating system. For example, you needed to install the Windows version of a software
package on a Windows machine. However, with containerization, you can create a single
software package, or container, that runs on all types of devices and operating systems.

Q.2 Difference between virtualization and containerization.


Ans:
Key Factor Virtualization Containerization

Technology One physical machine has One physical machine has


multiple OSs residing on it and multiple OSs residing on it and
appears as multiple machines. appears as multiple machines.

Start-up Time Higher than containers Less

Speed of working Speed of working Speed of working


Size Size Size

Larger Larger Larger

Benefits for IT enterprise businesses Software developers and in turn


IT businesses

Q.3 What is docker image?


Ans:
A Docker image, or container image, is a standalone, executable file used to create a
container. This container image contains all the libraries, dependencies, and files that the
container needs to run. A Docker image is a file used to execute code in a Docker container.
Docker images act as a set of instructions to build a Docker container.

Q.4 What is docker container?


Ans:
A container is a standard unit of software that packages up code and all its dependencies
so the application runs quickly and reliably from one computing environment to another.
A Docker container image is a lightweight, standalone, executable package of software
that includes everything needed to run an application: code, runtime, system tools, system
libraries and settings.

B.3 Conclusion:

We have successfully learned to study and Implement Containerization using Docker.

You might also like