SlideShare a Scribd company logo
1 of 33
Mr. Mohan Pawar
 What is Docker ?
 Containers Vs Virtual Machines
 Docker terminology
◦ Docker engine
◦ Images
◦ Containers
◦ Registry
◦ Docker Hub
◦ Docker Cloud
Introduction to Images
Getting started with Containers
 It’s all about data…
 There’s rock, paper, scissors
and then there’s information.
 Docker is an open source engine that
automates the deployment of any application
as a lightweight, portable and self-sufficient
that will run virtually anywhere.
 Package your application into a standardized
unit of software development.
 Provide a uniformed wrapper around a
software package: «Build, Ship and Run Any App,
Anywhere»
◦ Similar to shipping containers: The
container is always the same, regardless
of the contents and thus fits on all trucks,
cranes, ships, ...
 libvirt: Platform Virtualization
 LXC (LinuX Containers): Multiple isolated
Linux systems (containers) on a single host
 Layered File System
 2013-03: Releases as Open Source
 2013-09: Red Hat collaboration (Fedora,
RHEL, OpenShift)
 2014-03: 4th most starred GitHub project
 2014-05: JAX Innovation Award (most
innovative open technology)
12
Run Platforms
 Various Linux distributions
(Ubuntu, Fedora, RHEL, Centos,
openSUSE, ...)
 Cloud (Amazon EC2, Google
Compute Engine, Rackspacem,
Azure)
 2016-12: Microsoft announces
plans to integrate Docker with
next release of Windows Server
 Docker is the world’s
leading software
containerization platform.
Simple Command - Ad-Hoc Container
 docker run ubuntu echo Hello World
◦ docker images [-a]
◦ docker ps –a
 If you change a single line in your
project, how much time is required to
deploy it in production ?
 Persisted snapshot that can be run
◦ images: List all local images
◦ run: Create a container from an image and execute
a command in it
◦ tag: Tag an image
◦ pull: Download image from repository
◦ rmi: Delete a local image
 This will also remove intermediate images if no longer
used
 Runnable instance of an image
◦ ps: List all running containers
◦ ps –a: List all containers (incl. stopped)
◦ top: Display processes of a container
◦ start: Start a stopped container
◦ stop: Stop a running container
◦ pause: Pause all processes within a container
◦ rm: Delete a container
◦ commit: Create an image from a container
Container
cid4
Container
cid3
18
Image vs. Container
Base Image
ubuntu:latest
Container
cid1
run
Container
cid1
cmd  new state
New Image
iid1
commit
base image
Container
cid2
run
 Create images automatically using a build
script: «Dockerfile»
 Can be versioned in a version control system
like Git or SVN, along with all dependencies
 Docker Hub can automatically build images
based on dockerfiles on Github
 Dockerfile:
◦ FROM ubuntu
ENV DOCK_MESSAGE Hello My World
ADD dir /files
CMD ["bash", "someScript"]
 docker build [DockerFileDir]
 docker inspect [imageId]
 docker run –ti –v /hostLog:/log
ubuntu
 Run second container: Volume can be shared
◦ docker run –ti --volumes-from
firstContainerName ubuntu
 docker run –t –p 8080:80 ubuntu nc –l
80
◦ Map container port 80 to host port 8080
◦ Check on host: nc localhost 8080
 Link with other docker container
◦ docker run -ti --link containerName:alias
ubuntu
◦ See link info with set
 Docker Images: Docker Hub
 Vagrant: «Docker for VMs»
 Automated Setup
◦ Puppet, Chef, Ansible, ...
 Docker Ecosystem
◦ skydock / skydns
◦ fig
 Public repository of Docker images
◦ https://hub.docker.com/
◦ docker search [term]
 Automated: Has been automatically built from
Dockerfile
◦ Source for build is available on GitHub
 top / ps / free -m
 Start 100 WebServer containers
◦ docker run -d -p $hostPort:5000 -e
"PROVIDER=$provider" training/webapp
 docker ps [containerId]
 top / ps / free -m
 Development Environment
 Environments for Integration Tests
 Quick evaluation of software
 Microservices
 Multi-Tenancy
 Unified execution environment (dev  test 
prod (local, VM, cloud, ...)
e.g. BookMyShow transfer their 3 servers to
docker.
 All IT companies are migrating their servers
with docker.
 Micro-service architecture
 Serverless computing.
 Docker homepage: https://www.docker.com/
◦ Introduction:
https://www.docker.com/whatisdocker/
◦ Online tutorial: https://www.docker.com/tryit/
◦ Installation and user guide:
https://docs.docker.com/
 InfTec TecBoard:
https://inftec.atlassian.net/wiki/display/TEC/
Docker
 https://bitbucket.org/inftec/vagrant-
playground/branch/docker-demo
 Multi-Container-Setup
◦ Logging-Container
◦ Echo-Container
◦ Client-Container
 https://dockerinfo.wordpress.com/
 http://mohan08p.strikingly.com/
 https://www.quora.com/profile/Mohan-
Pawar-1
 https://github.com/mohan08p
 https://in.linkedin.com/in/mohan-pawar-
91a5432a
 Containerization is the fastest, most resource
effective, and most secure setup we know to
date and docker is drifting the IT world in
more agile way to achieved easy to create
architecture.
Docker Basics

More Related Content

What's hot

What's hot (20)

Docker introduction & benefits
Docker introduction & benefitsDocker introduction & benefits
Docker introduction & benefits
 
Docker introduction
Docker introductionDocker introduction
Docker introduction
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
 
Docker 101: An Introduction
Docker 101: An IntroductionDocker 101: An Introduction
Docker 101: An Introduction
 
Docker introduction for the beginners
Docker introduction for the beginnersDocker introduction for the beginners
Docker introduction for the beginners
 
Docker Introduction
Docker IntroductionDocker Introduction
Docker Introduction
 
Docker
DockerDocker
Docker
 
Docker introduction
Docker introductionDocker introduction
Docker introduction
 
Introduction to docker
Introduction to dockerIntroduction to docker
Introduction to docker
 
Docker Explained | What Is A Docker Container? | Docker Simplified | Docker T...
Docker Explained | What Is A Docker Container? | Docker Simplified | Docker T...Docker Explained | What Is A Docker Container? | Docker Simplified | Docker T...
Docker Explained | What Is A Docker Container? | Docker Simplified | Docker T...
 
Docker basics
Docker basicsDocker basics
Docker basics
 
What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...
What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...
What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...
 
Dockers and containers basics
Dockers and containers basicsDockers and containers basics
Dockers and containers basics
 
Docker in real life
Docker in real lifeDocker in real life
Docker in real life
 
Docker compose
Docker composeDocker compose
Docker compose
 
Introduction to Docker Compose
Introduction to Docker ComposeIntroduction to Docker Compose
Introduction to Docker Compose
 
Docker 101 - Nov 2016
Docker 101 - Nov 2016Docker 101 - Nov 2016
Docker 101 - Nov 2016
 
Virtual Machines and Docker
Virtual Machines and DockerVirtual Machines and Docker
Virtual Machines and Docker
 

Viewers also liked

Apache Ant
Apache AntApache Ant
Apache Ant
Ali Bahu
 

Viewers also liked (20)

Docker Basics
Docker BasicsDocker Basics
Docker Basics
 
docker installation and basics
docker installation and basicsdocker installation and basics
docker installation and basics
 
Java Builds with Maven and Ant
Java Builds with Maven and AntJava Builds with Maven and Ant
Java Builds with Maven and Ant
 
Docker by Example - Basics
Docker by Example - Basics Docker by Example - Basics
Docker by Example - Basics
 
Virtual machines and containers
Virtual machines and containersVirtual machines and containers
Virtual machines and containers
 
Why Do Developers Love Docker?
Why Do Developers Love Docker?Why Do Developers Love Docker?
Why Do Developers Love Docker?
 
Containerizing Web Application with Docker
Containerizing Web Application with DockerContainerizing Web Application with Docker
Containerizing Web Application with Docker
 
Containers - What are they and Atomic
Containers - What are they and AtomicContainers - What are they and Atomic
Containers - What are they and Atomic
 
Apache Ant
Apache AntApache Ant
Apache Ant
 
Introduction to Apache Ant
Introduction to Apache AntIntroduction to Apache Ant
Introduction to Apache Ant
 
ANT
ANTANT
ANT
 
Apache Ant
Apache AntApache Ant
Apache Ant
 
Discussing the difference between docker dontainers and virtual machines
Discussing the difference between docker dontainers and virtual machinesDiscussing the difference between docker dontainers and virtual machines
Discussing the difference between docker dontainers and virtual machines
 
bed-con 2015 - From Virtual Machines to Containers
bed-con 2015 - From Virtual Machines to Containersbed-con 2015 - From Virtual Machines to Containers
bed-con 2015 - From Virtual Machines to Containers
 
Containers in the Enterprise
Containers in the EnterpriseContainers in the Enterprise
Containers in the Enterprise
 
Talk on PHP Day Uruguay about Docker
Talk on PHP Day Uruguay about DockerTalk on PHP Day Uruguay about Docker
Talk on PHP Day Uruguay about Docker
 
Apache ANT vs Apache Maven
Apache ANT vs Apache MavenApache ANT vs Apache Maven
Apache ANT vs Apache Maven
 
Apache Ant
Apache AntApache Ant
Apache Ant
 
Manen Ant SVN
Manen Ant SVNManen Ant SVN
Manen Ant SVN
 
Building Trustworthy Containers
Building Trustworthy ContainersBuilding Trustworthy Containers
Building Trustworthy Containers
 

Similar to Docker Basics

14309525_docker_docker_docker_docker_introduction.ppt
14309525_docker_docker_docker_docker_introduction.ppt14309525_docker_docker_docker_docker_introduction.ppt
14309525_docker_docker_docker_docker_introduction.ppt
aravym456
 
Docker - The Linux Container
Docker - The Linux ContainerDocker - The Linux Container
Docker - The Linux Container
Balaji Rajan
 

Similar to Docker Basics (20)

Docker Ecosystem on Azure
Docker Ecosystem on AzureDocker Ecosystem on Azure
Docker Ecosystem on Azure
 
Docker mentorweek
Docker mentorweekDocker mentorweek
Docker mentorweek
 
ExpoQA 2017 Using docker to build and test in your laptop and Jenkins
ExpoQA 2017 Using docker to build and test in your laptop and JenkinsExpoQA 2017 Using docker to build and test in your laptop and Jenkins
ExpoQA 2017 Using docker to build and test in your laptop and Jenkins
 
aws 2023 nov docker.pptx
aws 2023 nov docker.pptxaws 2023 nov docker.pptx
aws 2023 nov docker.pptx
 
Docker for .NET Developers
Docker for .NET DevelopersDocker for .NET Developers
Docker for .NET Developers
 
Docker+java
Docker+javaDocker+java
Docker+java
 
Introducing docker
Introducing dockerIntroducing docker
Introducing docker
 
Powercoders · Docker · Fall 2021.pptx
Powercoders · Docker · Fall 2021.pptxPowercoders · Docker · Fall 2021.pptx
Powercoders · Docker · Fall 2021.pptx
 
Docker presentation
Docker presentationDocker presentation
Docker presentation
 
Docker for developers
Docker for developersDocker for developers
Docker for developers
 
How to _docker
How to _dockerHow to _docker
How to _docker
 
Docker, but what it is?
Docker, but what it is?Docker, but what it is?
Docker, but what it is?
 
Настройка окружения для кросскомпиляции проектов на основе docker'a
Настройка окружения для кросскомпиляции проектов на основе docker'aНастройка окружения для кросскомпиляции проектов на основе docker'a
Настройка окружения для кросскомпиляции проектов на основе docker'a
 
Up and running with docker
Up and running with dockerUp and running with docker
Up and running with docker
 
Introduction of Docker and Docker Compose
Introduction of Docker and Docker ComposeIntroduction of Docker and Docker Compose
Introduction of Docker and Docker Compose
 
PuppetConf 2017: What’s in the Box?!- Leveraging Puppet Enterprise & Docker- ...
PuppetConf 2017: What’s in the Box?!- Leveraging Puppet Enterprise & Docker- ...PuppetConf 2017: What’s in the Box?!- Leveraging Puppet Enterprise & Docker- ...
PuppetConf 2017: What’s in the Box?!- Leveraging Puppet Enterprise & Docker- ...
 
Docker 1.9 Workshop
Docker 1.9 WorkshopDocker 1.9 Workshop
Docker 1.9 Workshop
 
Using Docker to build and test in your laptop and Jenkins
Using Docker to build and test in your laptop and JenkinsUsing Docker to build and test in your laptop and Jenkins
Using Docker to build and test in your laptop and Jenkins
 
14309525_docker_docker_docker_docker_introduction.ppt
14309525_docker_docker_docker_docker_introduction.ppt14309525_docker_docker_docker_docker_introduction.ppt
14309525_docker_docker_docker_docker_introduction.ppt
 
Docker - The Linux Container
Docker - The Linux ContainerDocker - The Linux Container
Docker - The Linux Container
 

Recently uploaded

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Recently uploaded (20)

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 

Docker Basics

  • 2.  What is Docker ?  Containers Vs Virtual Machines  Docker terminology ◦ Docker engine ◦ Images ◦ Containers ◦ Registry ◦ Docker Hub ◦ Docker Cloud Introduction to Images Getting started with Containers
  • 3.  It’s all about data…
  • 4.  There’s rock, paper, scissors and then there’s information.
  • 5.
  • 6.
  • 7.  Docker is an open source engine that automates the deployment of any application as a lightweight, portable and self-sufficient that will run virtually anywhere.  Package your application into a standardized unit of software development.
  • 8.  Provide a uniformed wrapper around a software package: «Build, Ship and Run Any App, Anywhere» ◦ Similar to shipping containers: The container is always the same, regardless of the contents and thus fits on all trucks, cranes, ships, ...
  • 9.
  • 10.  libvirt: Platform Virtualization  LXC (LinuX Containers): Multiple isolated Linux systems (containers) on a single host  Layered File System
  • 11.  2013-03: Releases as Open Source  2013-09: Red Hat collaboration (Fedora, RHEL, OpenShift)  2014-03: 4th most starred GitHub project  2014-05: JAX Innovation Award (most innovative open technology)
  • 12. 12 Run Platforms  Various Linux distributions (Ubuntu, Fedora, RHEL, Centos, openSUSE, ...)  Cloud (Amazon EC2, Google Compute Engine, Rackspacem, Azure)  2016-12: Microsoft announces plans to integrate Docker with next release of Windows Server
  • 13.  Docker is the world’s leading software containerization platform.
  • 14. Simple Command - Ad-Hoc Container  docker run ubuntu echo Hello World ◦ docker images [-a] ◦ docker ps –a
  • 15.  If you change a single line in your project, how much time is required to deploy it in production ?
  • 16.  Persisted snapshot that can be run ◦ images: List all local images ◦ run: Create a container from an image and execute a command in it ◦ tag: Tag an image ◦ pull: Download image from repository ◦ rmi: Delete a local image  This will also remove intermediate images if no longer used
  • 17.  Runnable instance of an image ◦ ps: List all running containers ◦ ps –a: List all containers (incl. stopped) ◦ top: Display processes of a container ◦ start: Start a stopped container ◦ stop: Stop a running container ◦ pause: Pause all processes within a container ◦ rm: Delete a container ◦ commit: Create an image from a container
  • 18. Container cid4 Container cid3 18 Image vs. Container Base Image ubuntu:latest Container cid1 run Container cid1 cmd  new state New Image iid1 commit base image Container cid2 run
  • 19.  Create images automatically using a build script: «Dockerfile»  Can be versioned in a version control system like Git or SVN, along with all dependencies  Docker Hub can automatically build images based on dockerfiles on Github
  • 20.  Dockerfile: ◦ FROM ubuntu ENV DOCK_MESSAGE Hello My World ADD dir /files CMD ["bash", "someScript"]  docker build [DockerFileDir]  docker inspect [imageId]
  • 21.  docker run –ti –v /hostLog:/log ubuntu  Run second container: Volume can be shared ◦ docker run –ti --volumes-from firstContainerName ubuntu
  • 22.  docker run –t –p 8080:80 ubuntu nc –l 80 ◦ Map container port 80 to host port 8080 ◦ Check on host: nc localhost 8080  Link with other docker container ◦ docker run -ti --link containerName:alias ubuntu ◦ See link info with set
  • 23.  Docker Images: Docker Hub  Vagrant: «Docker for VMs»  Automated Setup ◦ Puppet, Chef, Ansible, ...  Docker Ecosystem ◦ skydock / skydns ◦ fig
  • 24.  Public repository of Docker images ◦ https://hub.docker.com/ ◦ docker search [term]  Automated: Has been automatically built from Dockerfile ◦ Source for build is available on GitHub
  • 25.  top / ps / free -m  Start 100 WebServer containers ◦ docker run -d -p $hostPort:5000 -e "PROVIDER=$provider" training/webapp  docker ps [containerId]  top / ps / free -m
  • 26.  Development Environment  Environments for Integration Tests  Quick evaluation of software  Microservices  Multi-Tenancy  Unified execution environment (dev  test  prod (local, VM, cloud, ...) e.g. BookMyShow transfer their 3 servers to docker.
  • 27.
  • 28.  All IT companies are migrating their servers with docker.  Micro-service architecture  Serverless computing.
  • 29.  Docker homepage: https://www.docker.com/ ◦ Introduction: https://www.docker.com/whatisdocker/ ◦ Online tutorial: https://www.docker.com/tryit/ ◦ Installation and user guide: https://docs.docker.com/  InfTec TecBoard: https://inftec.atlassian.net/wiki/display/TEC/ Docker
  • 31.  https://dockerinfo.wordpress.com/  http://mohan08p.strikingly.com/  https://www.quora.com/profile/Mohan- Pawar-1  https://github.com/mohan08p  https://in.linkedin.com/in/mohan-pawar- 91a5432a
  • 32.  Containerization is the fastest, most resource effective, and most secure setup we know to date and docker is drifting the IT world in more agile way to achieved easy to create architecture.

Editor's Notes

  1. Windows: http://www.zdnet.com/docker-cto-why-microsofts-docker-plans-for-windows-will-matter-to-you-7000035150/ "That's why the result of the Microsoft announcement will not allow a container that runs on Linux to run seamlessly on Windows or vice versa. But that's OK because in the context of distributed applications that's not what developers are asking for."