This tutorial on "Getting started With Docker" will help you understand the fundamental concepts in Docker and how it is used for containerization. Below are the topics covered in this tutorial:
1. Challenges With Shipping & Transportation
2. How Does Docker Fit The Bill?
3. What Is Docker?
4. Benefits Of Docker Over Virtual Machines
5. Docker Terminology
6. Architecture Of Docker
7. Hands-On: Running Hello-World Docker Container
To take a structured training on Deep Learning, you can check complete details of our Deep Learning with TensorFlow course here: https://goo.gl/WF1RYI
2. www.edureka.co/docker-trainingEDUREKA’S DOCKER CERTIFICATION TRAINING
Agenda
1. Challenges With Shipping & Transportation
2. How Does Docker Fit The Bill?
3. What Is Docker?
4. Benefits Of Docker Over Virtual Machines
5. Docker Terminology
6. Architecture Of Docker
7. Hands-On: Running Hello-World Docker Container
4. www.edureka.co/docker-trainingEDUREKA’S DOCKER CERTIFICATION TRAINING
Challenges With Shipping & Transportation
Means of transport
Goodstobetransported
Challenges:-
• How to transport the goods?
• Are the workers trained enough to handle the goods?
The goods will be shipped via various transports such as train, and ship.
During shipment, loading and unloading activities of goods requires skilled workers.
6. www.edureka.co/docker-trainingEDUREKA’S DOCKER CERTIFICATION TRAINING
Solution To Shipping & Transportation
Once loaded, the container can be
shipped over long distances efficiently
A container is loaded with goods &
sealed until it reaches the destination
MultiplicityofGoods
Multiplicityofmethods
fortransporting
CanItransportquicklyandsmoothly
(e.g.fromboattotraintotruck)
DoIworryabouthowgoodsinteract
(e.g.coffeebeansnexttospices)
7. www.edureka.co/docker-trainingEDUREKA’S DOCKER CERTIFICATION TRAINING
Challenges with System/Software Configurations
Machine / System
Software/Services
• Which system should be used to run the software/ service?
• Are the employees skilled enough to handle the service/ software?
9. www.edureka.co/docker-trainingEDUREKA’S DOCKER CERTIFICATION TRAINING
Docker – A shipping Container for node
Static website Web frontendUser DB Queue Analytics DB
Development
VM
QA server Public Cloud
Contributor’s
laptop
MultiplicityofStacks
Multiplicityofhardware
environments
Production
Cluster
Customer Data
Center
Doservicesandapps
interactappropriately?
CanImigrate
smoothlyandquickly
Operator:
Configure Once, Run Anything
Developer:
Build Once, Run Anywhere
11. www.edureka.co/docker-trainingEDUREKA’S DOCKER CERTIFICATION TRAINING
What Is Docker?
Host OS
Docker Engine
App 1
BINS / LIBS
Container 1 Container 2
App 2
BINS / LIBS
Docker is a Containerization platform which packages your application and all its dependencies together in the form of
Containers so as to ensure that your application works seamlessly in any environment be it Development or Test or Production.
12. www.edureka.co/docker-trainingEDUREKA’S DOCKER CERTIFICATION TRAINING
Who Can Use Docker?
Developer: Docker helps the developer to focus only on building great software by automating repetitive tasks of setting up
and configuring development environment.
Enterprise: Docker is at the heart of the modern app platform, bridging
developer and IT, Linux and Windows. It works in the cloud just as well
as on premise; supports both traditional and microservices
architectures.
Sysadmin: Docker helps the sysadmin to streamline the software
delivery, such as develop and deploy bug fixes and new features
without any roadblock.
13. www.edureka.co/docker-trainingEDUREKA’S DOCKER CERTIFICATION TRAINING
Why Docker?
Boost productivity
Eliminate friction in the development cycle
With BI you can keep track of information and set your goals
accordingly. BI goes a long way in helping achieving your aim
1
Adaptability
Easily adapts to your working environment
2
Simplicity
Long & tedious jobs are much simpler now3
15. www.edureka.co/docker-trainingEDUREKA’S DOCKER CERTIFICATION TRAINING
Docker In A Nutshell
Docker
File
Project Code
Docker
Image
Docker
Container
Virtual Machine
Docker
Hub
Production
Server
Staging
Server
Container
Container
• Docker file builds a Docker image and that image contains all the project's code
• You can run that image to create as many docker containers as you want
• The created Images can be uploaded on Docker hub from where the image can be
pulled and built in a container
18. www.edureka.co/docker-trainingEDUREKA’S DOCKER CERTIFICATION TRAINING
VM vs. Docker
S t a r t u p
S i z e
I n t e g r a t i o n
Total Memory
16 GB
4 GB 2 GB
Memory wasted: 7 GB
3 GB
2 GB 4 GB
6 GB
4 GB
6 GB
7 GB of memory is blocked and
cannot be allotted to a new VM
1 GB
In case of Virtual Machines
VM 1
VM 2
VM 3
Memory Used: 9 GB
19. www.edureka.co/docker-trainingEDUREKA’S DOCKER CERTIFICATION TRAINING
VM vs. Docker
S t a r t u p
S i z e
I n t e g r a t i o n
Total Memory
16 GB
4 GB 2 GB
Memory Used: 9 GB
Memory wasted: 7 GB
VM 1
3 GB
2 GB 4 GB
VM 2
VM 3
6 GB
4 GB
6 GB
7 GB of memory is blocked and
cannot be allotted to a new VM
In case of Virtual Machines
1 GB Total Memory
16 GB
Only 9 GB memory utilized;
7 GB can be allotted to a new Container
In case of Docker
Memory
Allotted: 4
GB
Memory
Allotted: 3
GB
Memory
Allotted: 10
GB
3 GB
2 GB
4 GB App 1
App 2
App 3
Memory Used: 9 GB
20. www.edureka.co/docker-trainingEDUREKA’S DOCKER CERTIFICATION TRAINING
VM vs. Docker
S t a r t u p
S i z e
I n t e g r a t i o n
Host OS Kernel
Guest
OS
BINS
&
LIBS
Ruby
v1
Build 1
Guest
OS
BINS
&
LIBS
Ruby
v2
Build 2
Virtual
Machines
New Builds Multiple OS Separate
Libraries Heavy More Time
In case of Virtual Machines In case of Docker
Host OS Kernel
BINS
&
LIBS
Ruby
v1
Build 1
BINS
&
LIBS
Ruby
v2
Build 2
Container
New Builds Same OS Separate
Libraries Lightweight Less Time
21. www.edureka.co/docker-trainingEDUREKA’S DOCKER CERTIFICATION TRAINING
VM vs. Docker
S t a r t u p
S i z e
I n t e g r a t i o n
Integration In Virtual Machines Is Possible, But:
▪ Costly Due To Infrastructure Requirements
▪ Not Easily Scalable
Jenkins
28. www.edureka.co/docker-trainingEDUREKA’S DOCKER CERTIFICATION TRAINING
Docker Images & Containers
▪ Read Only Template Used To Create Containers
▪ Built By Docker Users
▪ Stored In Docker Hub Or Your Local Registry
Docker Images Docker Containers
▪ Isolated Application Platform
▪ Contains Everything Needed To Run The Application
▪ Built From One Or More Images
run
29. www.edureka.co/docker-trainingEDUREKA’S DOCKER CERTIFICATION TRAINING
Docker Registry
▪ Docker Registry is a storage component for Docker Images
▪ We can store the Images in either Public / Private repositories
▪ Docker Hub is Docker’s very own cloud repository
▪ Control where your images are being stored
▪ Integrate image storage with your in-house development workflow
Why Use Docker Registries?
30. www.edureka.co/docker-trainingEDUREKA’S DOCKER CERTIFICATION TRAINING
Docker Swarm provides native clustering capabilities to turn a group of Docker engines into a
single, virtual Docker Engine. With these pooled resources, you can scale out your application
as if it were running on a single, huge computer.
Docker Swarm
31. www.edureka.co/docker-trainingEDUREKA’S DOCKER CERTIFICATION TRAINING
Docker Compose
Docker Compose makes it easier to configure and run applications made up of
multiple containers. For example, imagine being able to define three containers - one
running a web app, another running postgres, and a third running redis - all in one
YAML file and then running those three connected containers with a single command.
web app
postgres
redis
Docker
Compose
File
You can run these three
containers with a single commandContainers