SlideShare a Scribd company logo
Introduction to Docker
$whoami
Principal Development Engineer at DellEMC
1st half of my career was in CGI & VMware
2nd half of my career has been in System Integration Testing
Docker Captain (since 2016)
Docker Bangalore Meetup Organizer ( 7600+ Registered Users)
DockerLabs Incubator
Ajeet Singh Raina
Twitter: @ajeetsraina
GitHub: ajeetraina
- My Personal Blog website
- Built on WordPress, Hosted on One.com
- Recently Completed 4th Year
- 175+ blogs on Docker | Kubernetes | Cloud
- Monthly close to 1 million visitors per month
$curl www.collabnix.com
- A Shift from Monolithic to Microservices Architecture
- Traditional Software Development Workflow(with/without Docker)
- What is Docker? What problem does it solve for us?
- Docker Vs Linux Containers
- Docker Vs Virtual Machine
- Running Your First Docker Container - Demo
- Using Docker: Build, Ship and Run Workflow - Demo
- Building Your Docker Image using Dockerfile - Demo
Agenda
- Introduction to Docker Swarm
- How Docker Swarm Mode works?
- Running Web Application using Docker Swarm Mode - Demo
- Test Drive Docker & Docker Swarm on Raspberry Pi – Let’s make it happen !
- How to contribute towards Docker Community?
Agenda
A Shift from Monolithic to
Microservice Architecture
Introduction to Docker - VIT Campus
Let’s imagine you are building
a large, complex application,
e.g., Online Store
Successful Software Development
Architecture
Process Organization
Successful Software Development
Architecture
Process Organization
Small
Autonomous
team
Successful Software Development
Architecture
Process
Agile
Continuous Delivery
Organization
Small
Autonomous
team
Successful Software Development
Architecture
Monolthic Vs Microservices
Process
Agile
Continuous Delivery
Organization
Small
Autonomous
team
A Close Look at Monolithic
Browser
Client
App
Storefront UI
Module
Catalog
Module
Reviews
Module
Orders
Module
HTML
REST/JSON
Database
A Close Look at Monolithic
Browser
Client
App
Storefront UI
Module
Catalog
Module
Reviews
Module
Orders
Module
WAR
Tomcat
HTML
REST/JSON
Database
Simple to Develop, Test, Deploy & Scale
- Simple to develop because of all the tools and IDEs support to that kind
of application by default.
- Easy to deploy because all components are packed into one bundle.
- Easy to scale the whole application.
Benefits of Monolith
Introduction to Docker - VIT Campus
- Very difficult to maintain
- One component failure will cause the whole system to fail.
- Very difficult to understand and create the patches for monolithic applications.
- Adapting to new technology is very challengeable.
- Take a long time to startup because all the components need to get started.
Disadvantages of Monolith
Today
- Apps are constantly developed
- Built from loosely coupled components
- Newer version are deployed often
- Deployed to a multitude of servers
Customer/
Clients/
Users
Data
Storage
Data
Storage
Data
Storage
Microservice Architecture
Catalog
Service
Reviews
Service
Order
Service
…
Service
Catalog
Database
Reviews
Database
Order
Database
…
Database
API
Gateway
Storefront UI
Browser
Mobile
Device
REST
REST
HTML
REST
- Can scale independent microservices separately. No need to scale
the whole the system
- Can use the latest technologies to develop the microservices.
- One component failure will not cause entire system downtimes.
- When developing an overall solution we can parallel the
microservices development task with the small teams. So it helps to
decrease the development time.
Benefits of Microservices
Once upon a time…a Software Stack
Now much more distributed & complex…
Introduction to Docker - VIT Campus
Introduction to Docker - VIT Campus
An Effort to solve the problem Complexity
Every possible good to ship X Every Possible way to Ship
Enter….Internodal Container
That’s what Docker is all about..
What is Docker and what
problem does it solve?
What is Docker?
Refers to several things in 2019
 Docker as a “Company”
 Docker as a “Product”
 Docker as a “Platform”
 Docker as a “CLI Tool”
 Docker as a “Computer Program”
• Standardized packaging for
software and dependencies
• Isolate apps from each other
• Share the same OS kernel
• Works for all major Linux
distributions
• Containers native to Windows
Server 2016 & 1809
What is Docker?
Docker Product Offerings
History of Docker
 A Company as well as Product – 6 Years Old company
Developed by DotCloud Inc. ( Currently Docker Inc.)
A Framework they built their PaaS upon.
Released it as open source 3 and 1/2 years back
Cross-platform nature and friendliness towards System Admin and Developers
Possible to set up in any OS, be it Windows, OSX, Linux, Solaris - It work the same
way
 Guaranteed to run the same way - Your development desktop, a bare-metal server,
virtual machine, data center, or cloud
Today Docker runs on
Traditional Software
Development WorkFlow
(without Docker)
Introduction to Docker - VIT Campus
Introduction to Docker - VIT Campus
Introduction to Docker - VIT Campus
Introduction to Docker - VIT Campus
Introduction to Docker - VIT Campus
Traditional Software
Development WorkFlow
(with Docker)
Introduction to Docker - VIT Campus
Introduction to Docker - VIT Campus
Introduction to Docker - VIT Campus
Docker Vs VM
Docker Containers are NOT VMs
Virtual Machine
Containers
Docker Container Vs VM
Comparing Docker & VM
Virtual Machines Docker
Each VM runs its own OS Container is just a user space of OS
Boot up time is in minutes Containers instantiate in seconds
VMs snapshots are used sparingly Images are built incrementally on top
of another like layers. Lots of
images/snapshots
Not effective diffs. Not version
controlled
Images can be diffed and can be
version controlled. Docker hub is like
GITHUB
Cannot run more than couple of VMs
on an average laptop
Can run many Docker containers in a
laptop.
Only one VM can be started from one
set of VMX and VMDK files
Multiple Docker containers can be
started from one Docker image
Docker Vocabulary
Introduction to Docker - VIT Campus
Introduction to Docker - VIT Campus
Image Layers
Kernel
Alpine Linux
Install Python and Pip
Upgrade Pip
Copy Requirements
Install Requirements
…
Basic Docker CLIs
Pulling Docker Image
$ docker pull ajeetraina/hellowhale
Listing out Docker Images
$ docker image ls
Running Docker Containers
$ docker run –d –p 5000:5000 –-name hellowhale ajeetraina/hellowhale
Stopping the container
$ docker stop hellowhale (or <container id>)
Using Docker – Build,
Ship & Run WorkFlow
Build. Ship. Run.
- Create DockerHub Account(if not completed)
- Open https://play-with-docker.com
- Hello Whale Example
- Build Your First Docker Image & Push it to DockerHub
Demo
Building Docker Containers &
Microservices
Introducing Dockerfile
Series of instructions to build Docker Images
Dockerfile – Example
Each Dockerfile creates a Layer
Kernel
Alpine Linux
Install Python and Pip
Upgrade Pip
Copy Requirements
Install Requirements
…
Compose is a tool for defining and running multi-container Docker applications
Docker Compose
- Running WordPress Application using Docker Compose
Demo
Getting Started with
Docker Swarm
Let’s start with Single Docker Host
A Docker Host
http://collabnix.com/getting-started-with-docker-swarm/
You start adding more hosts..
http://collabnix.com/getting-started-with-docker-swarm/
But Wait..
Service
Discovery
Scalability
High
Availability
Failure
Management
Scheduling
Rolling Updates
Container Security
Docker Swarm comes for rescue..
http://collabnix.com/new-docker-1-12-comes-with-built-in-distribution-orchestration-system/
What is Swarm Mode?
• A swarm consists of one or more nodes: physical or virtual machines running Docker Engine.
• It was introduced first under Docker 1.12 release.
• It enables the ability to deploy containers across multiple Docker hosts, using overlay networks for
service discovery with a built-in load balancer for scaling the services.
http://collabnix.com/docker-1-12-swarm-mode-under-the-hood/
Introduction to Docker - VIT Campus
Building Docker Swarm
Topology
Introduction to Docker - VIT Campus
Introduction to Docker - VIT Campus
Introduction to Docker - VIT Campus
Introduction to Docker - VIT Campus
Introduction to Docker - VIT Campus
Introduction to Docker - VIT Campus
Introduction to Docker - VIT Campus
Introduction to Docker - VIT Campus
Introduction to Docker - VIT Campus
Introduction to Docker - VIT Campus
Introduction to Docker - VIT Campus
Introduction to Docker - VIT Campus
Introduction to Docker - VIT Campus
Building Swarm Cluster on Raspberry Pi
Running Portainer on Raspberry Pi
Demo
Introduction to Docker - VIT Campus
How shall I contribute for Docker Community?
Introduction to Docker - VIT Campus
Reference
 https://github.com/collabnix/dockerlabs
 https://docs.docker.com
 http://www.collabnix.com
Thank You

More Related Content

What's hot (20)

PPTX
Docker 101 : Introduction to Docker and Containers
Yajushi Srivastava
 
PDF
Introduction to Docker
Luong Vo
 
PDF
Docker Introduction
Peng Xiao
 
PPTX
Docker: From Zero to Hero
fazalraja
 
PPT
Docker introduction
Phuc Nguyen
 
PPTX
Docker 101 - Nov 2016
Docker, Inc.
 
PDF
Introduction to Docker Compose
Ajeet Singh Raina
 
PPTX
Docker introduction (1)
Gourav Varma
 
PPTX
Introduction to Docker
Pubudu Jayawardana
 
PPTX
Docker Basics
DuckDuckGo
 
PPTX
Docker introduction &amp; benefits
Amit Manwade
 
PPTX
Docker introduction for the beginners
Juneyoung Oh
 
PDF
Docker Explained | What Is A Docker Container? | Docker Simplified | Docker T...
Edureka!
 
PDF
Introduction to Docker storage, volume and image
ejlp12
 
PPTX
Docker and kubernetes
Dongwon Kim
 
PPTX
What is Docker
Pavel Klimiankou
 
PPTX
Docker.pptx
balaji257
 
PPTX
Docker Compose | Docker Compose Tutorial | Docker Tutorial For Beginners | De...
Simplilearn
 
PDF
Introduction to container based virtualization with docker
Bangladesh Network Operators Group
 
Docker 101 : Introduction to Docker and Containers
Yajushi Srivastava
 
Introduction to Docker
Luong Vo
 
Docker Introduction
Peng Xiao
 
Docker: From Zero to Hero
fazalraja
 
Docker introduction
Phuc Nguyen
 
Docker 101 - Nov 2016
Docker, Inc.
 
Introduction to Docker Compose
Ajeet Singh Raina
 
Docker introduction (1)
Gourav Varma
 
Introduction to Docker
Pubudu Jayawardana
 
Docker Basics
DuckDuckGo
 
Docker introduction &amp; benefits
Amit Manwade
 
Docker introduction for the beginners
Juneyoung Oh
 
Docker Explained | What Is A Docker Container? | Docker Simplified | Docker T...
Edureka!
 
Introduction to Docker storage, volume and image
ejlp12
 
Docker and kubernetes
Dongwon Kim
 
What is Docker
Pavel Klimiankou
 
Docker.pptx
balaji257
 
Docker Compose | Docker Compose Tutorial | Docker Tutorial For Beginners | De...
Simplilearn
 
Introduction to container based virtualization with docker
Bangladesh Network Operators Group
 

Similar to Introduction to Docker - VIT Campus (20)

PDF
A Shift from Monolith to Microservice using Docker
Ajeet Singh Raina
 
PDF
Demystifying Docker
Cloud Native Bangalore
 
PPTX
Demystifying Docker101
Ajeet Singh Raina
 
PPTX
ma-formation-en-Docker-jlklk,nknkjn.pptx
imenhamada17
 
PDF
Introduction to Docker - IndiaOpsUG
Ajeet Singh Raina
 
PDF
Introduction to Docker Containers - Docker Captain
Ajeet Singh Raina
 
PDF
Docker dev ops for cd meetup 12-14
Simon Storm
 
PPTX
Docker for .NET Developers
Taswar Bhatti
 
PPTX
Docker In Brief
Ritu Kamthan
 
PPTX
Docker - A high level introduction to dockers and containers
Dr Ganesh Iyer
 
PDF
Docker - Frank Maounis
Frank Maounis
 
PPTX
Docker 101 describing basic docker usage
ZiyanMaraikar1
 
PDF
Dockers and kubernetes
Dr Ganesh Iyer
 
PPTX
Docker and Microsoft - Windows Server 2016 Technical Deep Dive
Docker, Inc.
 
PPTX
What is Docker?
Shubhrank Rastogi
 
PDF
Docker Seattle Meetup, May 2017
Stephen Walli
 
PPTX
Microservices and containers for the unitiated
Kevin Lee
 
PPTX
Microservices in academic environment
Milind Bhagwati
 
PDF
Continuous Integration with Docker on AWS
Andrew Heifetz
 
PDF
Docker, Cloud Foundry, Bosh & Bluemix
IBM
 
A Shift from Monolith to Microservice using Docker
Ajeet Singh Raina
 
Demystifying Docker
Cloud Native Bangalore
 
Demystifying Docker101
Ajeet Singh Raina
 
ma-formation-en-Docker-jlklk,nknkjn.pptx
imenhamada17
 
Introduction to Docker - IndiaOpsUG
Ajeet Singh Raina
 
Introduction to Docker Containers - Docker Captain
Ajeet Singh Raina
 
Docker dev ops for cd meetup 12-14
Simon Storm
 
Docker for .NET Developers
Taswar Bhatti
 
Docker In Brief
Ritu Kamthan
 
Docker - A high level introduction to dockers and containers
Dr Ganesh Iyer
 
Docker - Frank Maounis
Frank Maounis
 
Docker 101 describing basic docker usage
ZiyanMaraikar1
 
Dockers and kubernetes
Dr Ganesh Iyer
 
Docker and Microsoft - Windows Server 2016 Technical Deep Dive
Docker, Inc.
 
What is Docker?
Shubhrank Rastogi
 
Docker Seattle Meetup, May 2017
Stephen Walli
 
Microservices and containers for the unitiated
Kevin Lee
 
Microservices in academic environment
Milind Bhagwati
 
Continuous Integration with Docker on AWS
Andrew Heifetz
 
Docker, Cloud Foundry, Bosh & Bluemix
IBM
 
Ad

More from Ajeet Singh Raina (20)

PDF
Delivering Docker & K3s worloads to IoT Edge devices
Ajeet Singh Raina
 
PDF
Delivering Container-based Apps to IoT Edge devices
Ajeet Singh Raina
 
PDF
Docker Trends & Statistics - A 20 Minutes Overview
Ajeet Singh Raina
 
PDF
Real time Object Detection and Analytics using RedisEdge and Docker
Ajeet Singh Raina
 
PDF
OSCONF Jaipur 2020 | Virtual Conference | Oct 10 | Ajeet Singh Raina
Ajeet Singh Raina
 
PDF
Quantifying Your World with AI & Docker on the Edge | OSCONF 2020 Jaipur
Ajeet Singh Raina
 
PDF
Keynote Slides | Ajeet Singh Raina | OSCONF 2020 Hyderabad
Ajeet Singh Raina
 
PDF
IoET Conference 2020 | Keynote Slides | Ajeet Singh Raina
Ajeet Singh Raina
 
PDF
OSCONF 2020 Kochi Conference | KubeZilla | 27 June 2020
Ajeet Singh Raina
 
PDF
Accelerate Your Automation Testing Effort using TestProject & Docker | Docker...
Ajeet Singh Raina
 
PDF
OSCONF 2020 Bengaluru | Powered by Collabnix | Keynote Slides
Ajeet Singh Raina
 
PDF
Top 5 Helpful Tips to Grow Your Local Docker Community
Ajeet Singh Raina
 
PDF
Awesome Traefik - Ingress Controller for Kubernetes - Swapnasagar Pradhan
Ajeet Singh Raina
 
PDF
Demystifying the Nuts & Bolts of Kubernetes Architecture
Ajeet Singh Raina
 
PDF
Kubernetes Monitoring & Best Practices
Ajeet Singh Raina
 
PDF
Current State of Docker Platform - Nov 2019
Ajeet Singh Raina
 
PDF
Collabnix Online Webinar: Integrated Log Analytics & Monitoring using Docker ...
Ajeet Singh Raina
 
PDF
Introduction to Docker Compose | Docker Intermediate Workshop
Ajeet Singh Raina
 
PDF
Simplifying Real Time Data Analytics with Docker, IoT & Cloud
Ajeet Singh Raina
 
PDF
Introducing Pico - Object Detection & Analytics using Docker, IoT & Amazon Re...
Ajeet Singh Raina
 
Delivering Docker & K3s worloads to IoT Edge devices
Ajeet Singh Raina
 
Delivering Container-based Apps to IoT Edge devices
Ajeet Singh Raina
 
Docker Trends & Statistics - A 20 Minutes Overview
Ajeet Singh Raina
 
Real time Object Detection and Analytics using RedisEdge and Docker
Ajeet Singh Raina
 
OSCONF Jaipur 2020 | Virtual Conference | Oct 10 | Ajeet Singh Raina
Ajeet Singh Raina
 
Quantifying Your World with AI & Docker on the Edge | OSCONF 2020 Jaipur
Ajeet Singh Raina
 
Keynote Slides | Ajeet Singh Raina | OSCONF 2020 Hyderabad
Ajeet Singh Raina
 
IoET Conference 2020 | Keynote Slides | Ajeet Singh Raina
Ajeet Singh Raina
 
OSCONF 2020 Kochi Conference | KubeZilla | 27 June 2020
Ajeet Singh Raina
 
Accelerate Your Automation Testing Effort using TestProject & Docker | Docker...
Ajeet Singh Raina
 
OSCONF 2020 Bengaluru | Powered by Collabnix | Keynote Slides
Ajeet Singh Raina
 
Top 5 Helpful Tips to Grow Your Local Docker Community
Ajeet Singh Raina
 
Awesome Traefik - Ingress Controller for Kubernetes - Swapnasagar Pradhan
Ajeet Singh Raina
 
Demystifying the Nuts & Bolts of Kubernetes Architecture
Ajeet Singh Raina
 
Kubernetes Monitoring & Best Practices
Ajeet Singh Raina
 
Current State of Docker Platform - Nov 2019
Ajeet Singh Raina
 
Collabnix Online Webinar: Integrated Log Analytics & Monitoring using Docker ...
Ajeet Singh Raina
 
Introduction to Docker Compose | Docker Intermediate Workshop
Ajeet Singh Raina
 
Simplifying Real Time Data Analytics with Docker, IoT & Cloud
Ajeet Singh Raina
 
Introducing Pico - Object Detection & Analytics using Docker, IoT & Amazon Re...
Ajeet Singh Raina
 
Ad

Recently uploaded (20)

PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
PPTX
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
PPTX
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
PDF
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PDF
Per Axbom: The spectacular lies of maps
Nexer Digital
 
PDF
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PPTX
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Per Axbom: The spectacular lies of maps
Nexer Digital
 
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 

Introduction to Docker - VIT Campus