SlideShare a Scribd company logo
Docker
Bhanuchander210
A Dev-Ops Tool Info
Written in : Go
Author : Solomon Hykes
Bhanuchander210
Virtualization
Type 1 :
● One OS doesn’t affect other / Gyest OS
● Ex : Microsoft Hyper-V, VMware ESXi Server, Xen Server
Type 2 :
● Host-Guest OS Methodology
● Ex : Microsoft Virtual PC, VMware Workstation, Oracle VBox
Bhanuchander210
Containerization
OS level Virtualization
●
● Isolated virtual machine like user space running instances
●
● Ex : Zones, Virtual Kernels
Virtual Machine
● Having Hypervisor.
● It consumes more. For
example ~1.2Gb/instance
● So heavier
● Slower
● Needs bigger footprint (RAM
and storage)
Containers
● Replaces hypervisor.
● Consumes very less
~2.5Mb
● Lightweight
● Faster
● Smaller footprint (No RAM
and individual storage)
Bhanuchander210
Docker Images
Docker Image
|---- CMD Layer
|---- EXPOSE Layer
|---- WORKDIR Layer
|---- RUN Layer
|---- Base Image Layer
|---- bootfs
Layers
Bhanuchander210
Docker Infra
Bhanuchander210
How To ?
Build Run
Quick Demo Video : Installation - Build - Run
Bhanuchander210
Docker Commands
Basic
● docker inspect - Inspecting the information about the custom object.
● docker rm - Removing the object provided in arg.
● docker info - Printing the docker information.
● docker rename - All objects can be renamed.
● docker login - Registry Login
● docker logout - Registry Logout
For containers,
● docker container
● docker ps - Process status for current running processes.
● docker start - Initiating the container.
● docker restart - Restarting the already started container.
● docker cp - Copy the files from the local directory to the container path.
● docker port - Port mapping on running container.
● docker pause
● docker unpause
For Images,
● docker image
● docker search - Search images in customized docker registry.
● docker pull - Pulling images from registry.
● docker push - Pushing images to the customized registry.
● docker save - Save the image as compressed file.
● docker load - Load the compressed file as an image.
● docker rmi - Removing images.
● docker run - Create + Start the container in single command.
Others
● docker volume - Mounting the local directory as a volume object to
the container.
● docker network - Network configuration customizing for bridge,
vlan and overlay networks.
● docker stats - Statistics on the container information on the
machine environment.
● docker top - Normal Top command for quick view.
Bhanuchander210
Docker Compose
Docker-compose.yaml
version: '3.3'
services:
db:
image: mysql:5.7
container_name: mysql_database
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: word@press
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: abc@123
wordpress:
depends_on:
- db
image: wordpress:latest
container_name: wd_frontend
volumes:
- wordpress_files:/var/www/html
ports:
- "8000:80"
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: abc@123
volumes:
wordpress_files:
db_data:
Run schema for Multiple Containers
Bhanuchander210
Docker Swarm
Raft consensus in swarm mode
http://thesecretlivesofdata.com/raft/
Can Tolerate upto (N-1)/2 Node failures
Bhanuchander210
Docker Swarm
Master
> docker swarm init
> docker stack deploy -c stack.yml myname
Worker
> docker swarm join --token ***** ip:port
In Master Node :
> docker stack ps msql
ID NAME IMAGE NODE CURRENT STATE
r3qnn6q8v83m msql_db.1 mysql:latest bhanuchander.nmsworks.co.in Running 13 minutes ago
bu06hxyucifm msql_adminer.1 adminer:latest bhanuchander.nmsworks.co.in Running 11 minutes ago
Container Names will be skipped . . . !
Bhanuchander210
Overview
Running Containers
Single/Swarm
Docker-Compose
?
Our application Local Host
Docker Image
Bhanuchander210
Others:
● Rancher
● Docker Machine
● Kubernetes vs Rancher vs Docker Machine
Deployment:
Objects
● POD
● Replica Set
● Deployment
● Service
● Namespace
In my system around 53 types of kubernetes Controllers and objects are available..
Demands for Swarm Cluster
Ex : Minikube, katakoda,....
Kubernetes

More Related Content

What's hot (19)

PDF
Virtualization workshop - part 1
Davide Pelosi
 
PDF
Introducing Xtrabackup Manager
Henrik Ingo
 
PDF
Highly efficient backups with percona xtrabackup
Nilnandan Joshi
 
PDF
Nano Server (ATD 11)
Tomica Kaniski
 
ODP
PostgreSQL Replication in 10 Minutes - SCALE
PostgreSQL Experts, Inc.
 
PPTX
Beyond 1000 bosh Deployments
anynines GmbH
 
PDF
OpenNebulaconf2017US: Paying down technical debt with "one" dollar bills by ...
OpenNebula Project
 
PDF
Improving Development and Deployment with Docker
Irfad Razick
 
PPTX
Open Cloud BBQ - Nano Server
Tomica Kaniski
 
PPTX
Front end development gurant
marwa Ayad Mohamed
 
PDF
OpenNebula 5.4 Enhancements vCenter Integration
OpenNebula Project
 
PDF
Percona xtrabackup - MySQL Meetup @ Mumbai
Nilnandan Joshi
 
PDF
Basics of Logical Replication,Streaming replication vs Logical Replication ,U...
Rajni Baliyan
 
PDF
OpenNebula Conf 2014 | Lightning talk: Proactive Autonomic Management Feature...
NETWAYS
 
PDF
Google Developer Group Central VA - Google Cloud Platform
Chida Chidambaram
 
PPT
FreeNAS 10: Challenges of Building a Modern Storage Appliance based on FreeBS...
iXsystems
 
PPTX
The True Story of FreeNAS
iXsystems
 
PDF
XPDDS17: Keynote: Xen 4.8 at Gandi - Vincent Legout, Gandi
The Linux Foundation
 
PDF
UltraESB - Installation and Configuration
AdroitLogic
 
Virtualization workshop - part 1
Davide Pelosi
 
Introducing Xtrabackup Manager
Henrik Ingo
 
Highly efficient backups with percona xtrabackup
Nilnandan Joshi
 
Nano Server (ATD 11)
Tomica Kaniski
 
PostgreSQL Replication in 10 Minutes - SCALE
PostgreSQL Experts, Inc.
 
Beyond 1000 bosh Deployments
anynines GmbH
 
OpenNebulaconf2017US: Paying down technical debt with "one" dollar bills by ...
OpenNebula Project
 
Improving Development and Deployment with Docker
Irfad Razick
 
Open Cloud BBQ - Nano Server
Tomica Kaniski
 
Front end development gurant
marwa Ayad Mohamed
 
OpenNebula 5.4 Enhancements vCenter Integration
OpenNebula Project
 
Percona xtrabackup - MySQL Meetup @ Mumbai
Nilnandan Joshi
 
Basics of Logical Replication,Streaming replication vs Logical Replication ,U...
Rajni Baliyan
 
OpenNebula Conf 2014 | Lightning talk: Proactive Autonomic Management Feature...
NETWAYS
 
Google Developer Group Central VA - Google Cloud Platform
Chida Chidambaram
 
FreeNAS 10: Challenges of Building a Modern Storage Appliance based on FreeBS...
iXsystems
 
The True Story of FreeNAS
iXsystems
 
XPDDS17: Keynote: Xen 4.8 at Gandi - Vincent Legout, Gandi
The Linux Foundation
 
UltraESB - Installation and Configuration
AdroitLogic
 

Similar to Docker ppt (20)

PDF
Learning Docker with Thomas
Thomas Tong, FRM, PMP
 
PPTX
Introduction to docker
Frederik Mogensen
 
PDF
手把手帶你學Docker 03042017
Paul Chao
 
PDF
Introduction to Docker and Monitoring with InfluxData
InfluxData
 
PDF
Talk on PHP Day Uruguay about Docker
Wellington Silva
 
PDF
Agile Brown Bag - Vagrant & Docker: Introduction
Agile Partner S.A.
 
PPTX
Docker and the Container Ecosystem
psconnolly
 
PPTX
Dockerize the World
damovsky
 
PDF
Docker workshop 0507 Taichung
Paul Chao
 
PDF
手把手帶你學 Docker 入門篇
Philip Zheng
 
PPTX
Dockerize the World - presentation from Hradec Kralove
damovsky
 
PPTX
Docker for the new Era: Introducing Docker,its components and tools
Ramit Surana
 
PDF
Docker, but what it is?
Julien Maitrehenry
 
PPTX
Evotalks Docker Presentation
Denis - Florin Rendler
 
PDF
Docker for developers
sparkfabrik
 
PDF
Docker for developers
DrupalDay
 
PPTX
Docker In Brief
Ritu Kamthan
 
PPTX
You, and Me, and Docker Makes Three
Christopher Grayson
 
PPTX
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
Simplilearn
 
PDF
Présentation de Docker
Proto204
 
Learning Docker with Thomas
Thomas Tong, FRM, PMP
 
Introduction to docker
Frederik Mogensen
 
手把手帶你學Docker 03042017
Paul Chao
 
Introduction to Docker and Monitoring with InfluxData
InfluxData
 
Talk on PHP Day Uruguay about Docker
Wellington Silva
 
Agile Brown Bag - Vagrant & Docker: Introduction
Agile Partner S.A.
 
Docker and the Container Ecosystem
psconnolly
 
Dockerize the World
damovsky
 
Docker workshop 0507 Taichung
Paul Chao
 
手把手帶你學 Docker 入門篇
Philip Zheng
 
Dockerize the World - presentation from Hradec Kralove
damovsky
 
Docker for the new Era: Introducing Docker,its components and tools
Ramit Surana
 
Docker, but what it is?
Julien Maitrehenry
 
Evotalks Docker Presentation
Denis - Florin Rendler
 
Docker for developers
sparkfabrik
 
Docker for developers
DrupalDay
 
Docker In Brief
Ritu Kamthan
 
You, and Me, and Docker Makes Three
Christopher Grayson
 
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
Simplilearn
 
Présentation de Docker
Proto204
 
Ad

Recently uploaded (20)

PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PDF
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PDF
Per Axbom: The spectacular lies of maps
Nexer Digital
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PPTX
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PDF
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
Market Insight : ETH Dominance Returns
CIFDAQ
 
PDF
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PPTX
python advanced data structure dictionary with examples python advanced data ...
sprasanna11
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
Per Axbom: The spectacular lies of maps
Nexer Digital
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
Market Insight : ETH Dominance Returns
CIFDAQ
 
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
python advanced data structure dictionary with examples python advanced data ...
sprasanna11
 
Ad

Docker ppt

  • 1. Docker Bhanuchander210 A Dev-Ops Tool Info Written in : Go Author : Solomon Hykes
  • 2. Bhanuchander210 Virtualization Type 1 : ● One OS doesn’t affect other / Gyest OS ● Ex : Microsoft Hyper-V, VMware ESXi Server, Xen Server Type 2 : ● Host-Guest OS Methodology ● Ex : Microsoft Virtual PC, VMware Workstation, Oracle VBox
  • 3. Bhanuchander210 Containerization OS level Virtualization ● ● Isolated virtual machine like user space running instances ● ● Ex : Zones, Virtual Kernels Virtual Machine ● Having Hypervisor. ● It consumes more. For example ~1.2Gb/instance ● So heavier ● Slower ● Needs bigger footprint (RAM and storage) Containers ● Replaces hypervisor. ● Consumes very less ~2.5Mb ● Lightweight ● Faster ● Smaller footprint (No RAM and individual storage)
  • 4. Bhanuchander210 Docker Images Docker Image |---- CMD Layer |---- EXPOSE Layer |---- WORKDIR Layer |---- RUN Layer |---- Base Image Layer |---- bootfs Layers
  • 6. Bhanuchander210 How To ? Build Run Quick Demo Video : Installation - Build - Run
  • 7. Bhanuchander210 Docker Commands Basic ● docker inspect - Inspecting the information about the custom object. ● docker rm - Removing the object provided in arg. ● docker info - Printing the docker information. ● docker rename - All objects can be renamed. ● docker login - Registry Login ● docker logout - Registry Logout For containers, ● docker container ● docker ps - Process status for current running processes. ● docker start - Initiating the container. ● docker restart - Restarting the already started container. ● docker cp - Copy the files from the local directory to the container path. ● docker port - Port mapping on running container. ● docker pause ● docker unpause For Images, ● docker image ● docker search - Search images in customized docker registry. ● docker pull - Pulling images from registry. ● docker push - Pushing images to the customized registry. ● docker save - Save the image as compressed file. ● docker load - Load the compressed file as an image. ● docker rmi - Removing images. ● docker run - Create + Start the container in single command. Others ● docker volume - Mounting the local directory as a volume object to the container. ● docker network - Network configuration customizing for bridge, vlan and overlay networks. ● docker stats - Statistics on the container information on the machine environment. ● docker top - Normal Top command for quick view.
  • 8. Bhanuchander210 Docker Compose Docker-compose.yaml version: '3.3' services: db: image: mysql:5.7 container_name: mysql_database volumes: - db_data:/var/lib/mysql restart: always environment: MYSQL_ROOT_PASSWORD: word@press MYSQL_DATABASE: wordpress MYSQL_USER: wordpress MYSQL_PASSWORD: abc@123 wordpress: depends_on: - db image: wordpress:latest container_name: wd_frontend volumes: - wordpress_files:/var/www/html ports: - "8000:80" restart: always environment: WORDPRESS_DB_HOST: db:3306 WORDPRESS_DB_USER: wordpress WORDPRESS_DB_PASSWORD: abc@123 volumes: wordpress_files: db_data: Run schema for Multiple Containers
  • 9. Bhanuchander210 Docker Swarm Raft consensus in swarm mode http://thesecretlivesofdata.com/raft/ Can Tolerate upto (N-1)/2 Node failures
  • 10. Bhanuchander210 Docker Swarm Master > docker swarm init > docker stack deploy -c stack.yml myname Worker > docker swarm join --token ***** ip:port In Master Node : > docker stack ps msql ID NAME IMAGE NODE CURRENT STATE r3qnn6q8v83m msql_db.1 mysql:latest bhanuchander.nmsworks.co.in Running 13 minutes ago bu06hxyucifm msql_adminer.1 adminer:latest bhanuchander.nmsworks.co.in Running 11 minutes ago Container Names will be skipped . . . !
  • 12. Bhanuchander210 Others: ● Rancher ● Docker Machine ● Kubernetes vs Rancher vs Docker Machine Deployment: Objects ● POD ● Replica Set ● Deployment ● Service ● Namespace In my system around 53 types of kubernetes Controllers and objects are available.. Demands for Swarm Cluster Ex : Minikube, katakoda,.... Kubernetes