B31CCL Exp 9)
B31CCL Exp 9)
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:
A.3 Objective:
Objectives this experiment is to provide students an overview AWS, its Features and
Services.
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
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)
Grade :
B.3 Conclusion: