Week#8(Containerization)
Week#8(Containerization)
Week#8(Containerization)
Yin Hua Li
Centennial College
Week#8 2024Fall
Topic: Containerization
1
¡ Traditionally, software is developed in a specific computing environment, when
it is transferred to a new environment , often results in bugs and errors.
Containerization is introduced to eliminate this problem.
¡ Containerization is to package software code, related configuration files,
libraries and all its dependencies so that it can run on any infrastructure
From https://hackernoon.com/what-is-containerization-83ae53a709a6 2
¡ Containerization and virtualization are the two most frequently used
mechanisms to host applications in a computer system , both have pros
and cons
§ Virtualization uses virtual machine as the fundamental unit
§ Containerization uses the concept of a container
¡ For more of comparison, watch the video here
From https://hackernoon.com/what-is-containerization-83ae53a709a6
3
¡ Docker
¡ AWS Fargate
¡ Google Kubernetes Engine
¡ Amazon Elastic Container Service (ECS)
¡ Linus Containers (LXC)
¡ Container Linux by CoreOs
¡ Microsoft Azure
¡ Google Cloud Platform
¡ Portainer
¡ Apache Mesos
https://www.softwaretestinghelp.com/container-software/ 4
¡ Container has been exploded in popularity with
the introduction of Docker Engine in 2013.
Because of that, “containerizing” and
“Dockerizing” are often used interchangeably
From https://docs.docker.com/get-started/docker-overview/ 8
9
10
11
¡ Watch these videos
§ https://www.youtube.com/watch?v=vmnvOITMoIg&list=PLdo4fOcmZ0oUvXP_Pt2zOgk8dTWagGs_P&index=1
§ https://www.youtube.com/watch?v=SjqBCRn-XnI
12
13
docker build -f Dockerfile ..
Dockerfile
14
docker build -f Dockerfile ..
¡ What is a Dockerfile?
§ Docker builds images automatically by reading the instructions from a
Dockerfile which is a text file that contains all commands, in order, needed
to build a given image.
§ A Dockerfile adheres to a specific format and set of instructions which you
can find at Dockerfile reference.
▪ https://docs.docker.com/engine/reference/builder/
Set up base image with aspnet runtime
16
¡ https://blog.netapp.com/blogs/containers-vs-vms/
¡ https://www.ibm.com/cloud/learn/containerization
¡ https://www.baeldung.com/cs/virtualization-vs-containerization
¡ https://hackernoon.com/what-is-containerization-83ae53a709a6
¡ https://builtin.com/software-engineering-perspectives/containerization
¡ https://www.softwaretestinghelp.com/container-software/
¡ https://docs.docker.com/get-started/overview/
¡ https://www.youtube.com/watch?v=3c-iBn73dDE&t=7s
¡ https://learn.microsoft.com/en-us/visualstudio/containers/container-tools?view=vs-2022
17