Introduction to container based virtualization with docker

Introduction to container based virtualization with docker
About Me
MD. Al-Amin Talukdar
3+ year experience in IT
DevOps Engineer
RHCSA, RHCE
Old Way
Virtualization
Container Based Virtualization
Container vs VM
Container vs VM
• Containers are more lightweight.
• No need to install guest OS.
• Less CPU, RAM, Storage needed.
• More containers per machine than VM.
• Greater Graterility.
What is Docker?
Docker is a platform for developing, shipping & running
application using container based virtualization
technology.
How Docker Works
Components of Docker
• Docker File
• Docker Images
• Docker Engine
• Docker Container
• Docker Hub
• Docker Machine
• Docker Swam
• Docker Compose
• Kitematic
Docker Image
• A Docker image is a binary that includes all of the
requirements for running a single Docker container, as
well as metadata describing its needs and capabilities.
Docker File
• A Dockerfile is a text document that contains all the
commands a user could call on the command line to
assemble an image. Using docker build users can create
an automated build that executes several command-line
instructions in succession.
• Dockerfile is used for automation of work by specifying
all step that we want on docker image.
Docker Container
• Images are read only containers used to create
containers.
• Built by you or other Docker Users.
• Stored in docker hub or your local repository
Docker Engine
• Docker Engine is the program that enables containers
to build shipped & run.
• Docker Engine uses Linux Kernel namespace & control
group.
• Namespace gives us the isolated workspace.
Installing Docker & Running Hello World
Install docker with command
# curl -sSL https://get.docker.com/ | sh
Run the hello world container to test your installation
# sudo docker run hello-world
*Installation instruction areavailable at
https://docs.docker.com/engine/installation/
Registry & Repository
• Where we store our image is known as registry
• You can use your own registry or docker's public registry. Known
as Docker Hub
Docker Hub
• Docker hub is the public registry that contains large amount
of images available for your use.
• Official Repositories are available at
https://hub.docker.com/explore/
Intro to Images
1. Go to https://hub.docker.com/ and sign up for an account.
2. Find your confirmation email and active your account.
3. Explore images from docker hub.
4. Understanding official Images, Tags
5. Search images on docker hub.
Docker Orchestration
Three tools for orchestrating distributed applications with docker
• Docker Machine
Tool that provides Docker Hosts and install the Docker Engine on them.
• Docker Swarm
Tool that clusters many Engines and schedules containers.
• Docker Compose
Tool to create and manage multi-container application.
Benefits of using Docker
- Separation of Concerns
Life becomes easier for System admin
- Fast deployment cycle
- Application portability
Build in one environment, Ship anywhere.
- Scalability
Easy sign up new containers if needed.
- Run more apps on host machine
Docker Networking
• Containers can talk to each other without having to expose ports
to host.
• Essential for micro service application architecture.
• Example:
-Container with Tomcat running
-Container with MySQL running
-Application on tomcat needs to connect to MySQL
Quick Security Consideration
• Docker demon needs to run as root.
• Ensure that, only trusted can control Docker Demon.
• If binding the demon to a TCP socket, secure it with TLS
• Use linux hardening solutions
- SELinux
- GRSEC
Docker In Production
- Private Registry
- Docker Swarm
- Docker Cloud
- AWS ECS
- Apache Mesos
- Google Cloud
- DC/OS
Introduction to container based virtualization with docker
Introduction to container based virtualization with docker
1 of 25

Recommended

Docker 101 - High level introduction to docker by
Docker 101 - High level introduction to dockerDocker 101 - High level introduction to docker
Docker 101 - High level introduction to dockerDr Ganesh Iyer
920 views37 slides
Introduction to Docker - VIT Campus by
Introduction to Docker - VIT CampusIntroduction to Docker - VIT Campus
Introduction to Docker - VIT CampusAjeet Singh Raina
2.1K views91 slides
Docker Introduction by
Docker IntroductionDocker Introduction
Docker IntroductionPeng Xiao
1.5K views48 slides
Docker Networking Overview by
Docker Networking OverviewDocker Networking Overview
Docker Networking OverviewSreenivas Makam
21K views28 slides
Docker introduction by
Docker introductionDocker introduction
Docker introductionPhuc Nguyen
1.3K views62 slides
Docker: From Zero to Hero by
Docker: From Zero to HeroDocker: From Zero to Hero
Docker: From Zero to Herofazalraja
1.9K views21 slides

More Related Content

What's hot

Docker intro by
Docker introDocker intro
Docker introOleg Z
490 views24 slides
Docker introduction by
Docker introductionDocker introduction
Docker introductionGourav Varma
242 views23 slides
Kubernetes Introduction by
Kubernetes IntroductionKubernetes Introduction
Kubernetes IntroductionMartin Danielsson
10.6K views22 slides
docker installation and basics by
docker installation and basicsdocker installation and basics
docker installation and basicsWalid Ashraf
839 views21 slides
Docker Basics by
Docker BasicsDocker Basics
Docker BasicsDuckDuckGo
1.1K views33 slides
Dockers and containers basics by
Dockers and containers basicsDockers and containers basics
Dockers and containers basicsSourabh Saxena
2.4K views27 slides

What's hot(20)

Docker intro by Oleg Z
Docker introDocker intro
Docker intro
Oleg Z490 views
docker installation and basics by Walid Ashraf
docker installation and basicsdocker installation and basics
docker installation and basics
Walid Ashraf839 views
Docker Basics by DuckDuckGo
Docker BasicsDocker Basics
Docker Basics
DuckDuckGo1.1K views
Dockers and containers basics by Sourabh Saxena
Dockers and containers basicsDockers and containers basics
Dockers and containers basics
Sourabh Saxena2.4K views
Containers Anywhere with OpenShift by Red Hat by Amazon Web Services
Containers Anywhere with OpenShift by Red HatContainers Anywhere with OpenShift by Red Hat
Containers Anywhere with OpenShift by Red Hat
Amazon Web Services9.3K views
Docker Introduction by Sparkbit
Docker IntroductionDocker Introduction
Docker Introduction
Sparkbit1.1K views
Introduction to Docker Containers - Docker Captain by Ajeet Singh Raina
Introduction to Docker Containers - Docker CaptainIntroduction to Docker Containers - Docker Captain
Introduction to Docker Containers - Docker Captain
Ajeet Singh Raina3.8K views
What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker... by Simplilearn
What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker...What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker...
What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker...
Simplilearn5.2K views
Docker introduction by dotCloud
Docker introductionDocker introduction
Docker introduction
dotCloud455.8K views
Docker 101: Introduction to Docker by Docker, Inc.
Docker 101: Introduction to DockerDocker 101: Introduction to Docker
Docker 101: Introduction to Docker
Docker, Inc.71.1K views
Docker 101 - Nov 2016 by Docker, Inc.
Docker 101 - Nov 2016Docker 101 - Nov 2016
Docker 101 - Nov 2016
Docker, Inc.7.2K views
Hands-On Introduction to Kubernetes at LISA17 by Ryan Jarvinen
Hands-On Introduction to Kubernetes at LISA17Hands-On Introduction to Kubernetes at LISA17
Hands-On Introduction to Kubernetes at LISA17
Ryan Jarvinen1.1K views
Introduction to docker by Instruqt
Introduction to dockerIntroduction to docker
Introduction to docker
Instruqt658 views
Kubernetes by erialc_w
KubernetesKubernetes
Kubernetes
erialc_w3K views
Docker introduction & benefits by Amit Manwade
Docker introduction & benefitsDocker introduction & benefits
Docker introduction & benefits
Amit Manwade695 views
Docker 101 : Introduction to Docker and Containers by Yajushi Srivastava
Docker 101 : Introduction to Docker and ContainersDocker 101 : Introduction to Docker and Containers
Docker 101 : Introduction to Docker and Containers
Yajushi Srivastava1.9K views

Similar to Introduction to container based virtualization with docker

Docker introduction (1) by
Docker introduction (1)Docker introduction (1)
Docker introduction (1)Gourav Varma
22 views23 slides
Docker introduction (1) by
Docker introduction (1)Docker introduction (1)
Docker introduction (1)Gourav Varma
29 views23 slides
Docker interview Questions-1.pdf by
Docker interview Questions-1.pdfDocker interview Questions-1.pdf
Docker interview Questions-1.pdfYogeshwaran R
52 views50 slides
Docker Overview by
Docker OverviewDocker Overview
Docker OverviewAlexander Moon
228 views22 slides
Docker introduction (1) by
Docker introduction (1)Docker introduction (1)
Docker introduction (1)Gourav Varma
175 views23 slides
Docker introduction (1) by
Docker introduction (1)Docker introduction (1)
Docker introduction (1)Kalkey
19 views23 slides

Similar to Introduction to container based virtualization with docker(20)

Docker introduction (1) by Gourav Varma
Docker introduction (1)Docker introduction (1)
Docker introduction (1)
Gourav Varma22 views
Docker introduction (1) by Gourav Varma
Docker introduction (1)Docker introduction (1)
Docker introduction (1)
Gourav Varma29 views
Docker interview Questions-1.pdf by Yogeshwaran R
Docker interview Questions-1.pdfDocker interview Questions-1.pdf
Docker interview Questions-1.pdf
Yogeshwaran R52 views
Docker introduction (1) by Gourav Varma
Docker introduction (1)Docker introduction (1)
Docker introduction (1)
Gourav Varma175 views
Docker introduction (1) by Kalkey
Docker introduction (1)Docker introduction (1)
Docker introduction (1)
Kalkey19 views
Virtualization, Containers, Docker and scalable container management services by abhishek chawla
Virtualization, Containers, Docker and scalable container management servicesVirtualization, Containers, Docker and scalable container management services
Virtualization, Containers, Docker and scalable container management services
abhishek chawla2.3K views
Containers docker-docker hub-azureacr-azure aci by Rajesh Kolla
Containers docker-docker hub-azureacr-azure aciContainers docker-docker hub-azureacr-azure aci
Containers docker-docker hub-azureacr-azure aci
Rajesh Kolla42 views
Docker on azure by Anuraj P
Docker on azureDocker on azure
Docker on azure
Anuraj P43 views
Learning Dockers - Step by Step by Adnan Siddiqi
Learning Dockers - Step by StepLearning Dockers - Step by Step
Learning Dockers - Step by Step
Adnan Siddiqi132 views
Docker.pptx by balaji257
Docker.pptxDocker.pptx
Docker.pptx
balaji257456 views
Dockerize the World by damovsky
Dockerize the WorldDockerize the World
Dockerize the World
damovsky753 views
Docker 101 - Zaragoza Docker Meetup - Universidad de Zaragoza by Angel Borroy López
Docker 101 - Zaragoza Docker Meetup - Universidad de ZaragozaDocker 101 - Zaragoza Docker Meetup - Universidad de Zaragoza
Docker 101 - Zaragoza Docker Meetup - Universidad de Zaragoza

More from Bangladesh Network Operators Group

IPv6 Deployment in South Asia 2022 by
IPv6 Deployment in South Asia  2022IPv6 Deployment in South Asia  2022
IPv6 Deployment in South Asia 2022Bangladesh Network Operators Group
43 views20 slides
Introduction to Software Defined Networking (SDN) by
Introduction to Software Defined Networking (SDN)Introduction to Software Defined Networking (SDN)
Introduction to Software Defined Networking (SDN)Bangladesh Network Operators Group
138 views27 slides
RPKI Deployment Status in Bangladesh by
RPKI Deployment Status in BangladeshRPKI Deployment Status in Bangladesh
RPKI Deployment Status in BangladeshBangladesh Network Operators Group
45 views21 slides
An Overview about open UDP Services by
An Overview about open UDP ServicesAn Overview about open UDP Services
An Overview about open UDP ServicesBangladesh Network Operators Group
217 views15 slides
12 Years in DNS Security As a Defender by
12 Years in DNS Security As a Defender12 Years in DNS Security As a Defender
12 Years in DNS Security As a DefenderBangladesh Network Operators Group
111 views21 slides
Contents Localization Initiatives to get better User Experience by
Contents Localization Initiatives to get better User ExperienceContents Localization Initiatives to get better User Experience
Contents Localization Initiatives to get better User ExperienceBangladesh Network Operators Group
72 views31 slides

More from Bangladesh Network Operators Group(20)

Recently uploaded

information by
informationinformation
informationkhelgishekhar
9 views4 slides
IETF 118: Starlink Protocol Performance by
IETF 118: Starlink Protocol PerformanceIETF 118: Starlink Protocol Performance
IETF 118: Starlink Protocol PerformanceAPNIC
297 views22 slides
How to think like a threat actor for Kubernetes.pptx by
How to think like a threat actor for Kubernetes.pptxHow to think like a threat actor for Kubernetes.pptx
How to think like a threat actor for Kubernetes.pptxLibbySchulze1
5 views33 slides
Building trust in our information ecosystem: who do we trust in an emergency by
Building trust in our information ecosystem: who do we trust in an emergencyBuilding trust in our information ecosystem: who do we trust in an emergency
Building trust in our information ecosystem: who do we trust in an emergencyTina Purnat
100 views18 slides
PORTFOLIO 1 (Bret Michael Pepito).pdf by
PORTFOLIO 1 (Bret Michael Pepito).pdfPORTFOLIO 1 (Bret Michael Pepito).pdf
PORTFOLIO 1 (Bret Michael Pepito).pdfbrejess0410
8 views6 slides
Is Entireweb better than Google by
Is Entireweb better than GoogleIs Entireweb better than Google
Is Entireweb better than Googlesebastianthomasbejan
12 views1 slide

Recently uploaded(9)

IETF 118: Starlink Protocol Performance by APNIC
IETF 118: Starlink Protocol PerformanceIETF 118: Starlink Protocol Performance
IETF 118: Starlink Protocol Performance
APNIC297 views
How to think like a threat actor for Kubernetes.pptx by LibbySchulze1
How to think like a threat actor for Kubernetes.pptxHow to think like a threat actor for Kubernetes.pptx
How to think like a threat actor for Kubernetes.pptx
LibbySchulze15 views
Building trust in our information ecosystem: who do we trust in an emergency by Tina Purnat
Building trust in our information ecosystem: who do we trust in an emergencyBuilding trust in our information ecosystem: who do we trust in an emergency
Building trust in our information ecosystem: who do we trust in an emergency
Tina Purnat100 views
PORTFOLIO 1 (Bret Michael Pepito).pdf by brejess0410
PORTFOLIO 1 (Bret Michael Pepito).pdfPORTFOLIO 1 (Bret Michael Pepito).pdf
PORTFOLIO 1 (Bret Michael Pepito).pdf
brejess04108 views
Marketing and Community Building in Web3 by Federico Ast
Marketing and Community Building in Web3Marketing and Community Building in Web3
Marketing and Community Building in Web3
Federico Ast12 views

Introduction to container based virtualization with docker

  • 2. About Me MD. Al-Amin Talukdar 3+ year experience in IT DevOps Engineer RHCSA, RHCE
  • 7. Container vs VM • Containers are more lightweight. • No need to install guest OS. • Less CPU, RAM, Storage needed. • More containers per machine than VM. • Greater Graterility.
  • 8. What is Docker? Docker is a platform for developing, shipping & running application using container based virtualization technology.
  • 10. Components of Docker • Docker File • Docker Images • Docker Engine • Docker Container • Docker Hub • Docker Machine • Docker Swam • Docker Compose • Kitematic
  • 11. Docker Image • A Docker image is a binary that includes all of the requirements for running a single Docker container, as well as metadata describing its needs and capabilities.
  • 12. Docker File • A Dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image. Using docker build users can create an automated build that executes several command-line instructions in succession. • Dockerfile is used for automation of work by specifying all step that we want on docker image.
  • 13. Docker Container • Images are read only containers used to create containers. • Built by you or other Docker Users. • Stored in docker hub or your local repository
  • 14. Docker Engine • Docker Engine is the program that enables containers to build shipped & run. • Docker Engine uses Linux Kernel namespace & control group. • Namespace gives us the isolated workspace.
  • 15. Installing Docker & Running Hello World Install docker with command # curl -sSL https://get.docker.com/ | sh Run the hello world container to test your installation # sudo docker run hello-world *Installation instruction areavailable at https://docs.docker.com/engine/installation/
  • 16. Registry & Repository • Where we store our image is known as registry • You can use your own registry or docker's public registry. Known as Docker Hub
  • 17. Docker Hub • Docker hub is the public registry that contains large amount of images available for your use. • Official Repositories are available at https://hub.docker.com/explore/
  • 18. Intro to Images 1. Go to https://hub.docker.com/ and sign up for an account. 2. Find your confirmation email and active your account. 3. Explore images from docker hub. 4. Understanding official Images, Tags 5. Search images on docker hub.
  • 19. Docker Orchestration Three tools for orchestrating distributed applications with docker • Docker Machine Tool that provides Docker Hosts and install the Docker Engine on them. • Docker Swarm Tool that clusters many Engines and schedules containers. • Docker Compose Tool to create and manage multi-container application.
  • 20. Benefits of using Docker - Separation of Concerns Life becomes easier for System admin - Fast deployment cycle - Application portability Build in one environment, Ship anywhere. - Scalability Easy sign up new containers if needed. - Run more apps on host machine
  • 21. Docker Networking • Containers can talk to each other without having to expose ports to host. • Essential for micro service application architecture. • Example: -Container with Tomcat running -Container with MySQL running -Application on tomcat needs to connect to MySQL
  • 22. Quick Security Consideration • Docker demon needs to run as root. • Ensure that, only trusted can control Docker Demon. • If binding the demon to a TCP socket, secure it with TLS • Use linux hardening solutions - SELinux - GRSEC
  • 23. Docker In Production - Private Registry - Docker Swarm - Docker Cloud - AWS ECS - Apache Mesos - Google Cloud - DC/OS