SlideShare a Scribd company logo
Unit3
Docker containers
What Is Docker?
Docker is a configuration management tool that helps a developer to wrap
an application and its dependencies into a Docker Container for the
development and deployment of software.
People and organizations have driven the demand for new applications to
new heights, so the pressure is on to keep up with the demand. The task
becomes easier if developers have the right tools. Docker is one such tool, a
popular platform dedicated to the development, shipment, and running of
applications.
Today, we will look at the best way to start using Docker. But before we get
into the nuts and bolts of implementation, let’s refresh our understanding
of this versatile and popular platform.
What Is Docker? Cont..
• When getting started with Docker, we first
need to understand Docker. Docker is an OS
virtualized software platform that allows IT
organizations to quickly create, deploy, and
run applications in Docker containers, which
have all the dependencies within them. The
container itself is a very lightweight package
with all the instructions and dependencies—
such as frameworks, libraries, and bins—
within it
Dockers place
The Docker container can be moved from environment to environment very easily. In
a DevOps life cycle, Docker really shines when used for deployment. When you deploy
your solution, you want to guarantee that the code tested will actually work in the
production environment. In addition, when you're building and testing the code, it's
beneficial to have a container running the solution at those stages because you can
validate your work in the same environment used for production.
You can use Docker throughout multiple stages of your DevOps cycle, but it is especially
valuable in the deployment stage, especially since it allows developers to use rapid
deployment. In addition, the environment itself is highly portable and was designed
with efficiencies that will enable you to run multiple Docker containers in a single
environment, unlike traditional virtual machine environments.
Virtual Machines Vs Docker
Major difference in Docker & Virtual
Machines
In the image, you’ll notice some major differences, including:
• The virtual environment has a hypervisor layer, whereas Docker has a Docker
engine layer.
• With a virtual machine, the memory usage is very high, whereas, in a Docker
environment, memory usage is very low.
• In terms of performance, when you start building out a virtual machine,
particularly when you have more than one virtual machine on a server, the
performance becomes poorer. With Docker, the performance is always high
because of the single Docker engine.
• In terms of portability, virtual machines just are not ideal. They’re still dependent
on the host operating system, and a lot of problems can happen when you use
virtual machines for portability. In contrast, Docker was designed for portability.
You can actually build solutions in a Docker container, and the solution is
guaranteed to work as you have built it no matter where it’s hosted.
• The boot-up time for a virtual machine is fairly slow in comparison to the boot-
up time for a Docker environment, in which boot-up is almost instantaneous
Virtual machin Vs docker
Challenge's in uses of dockers
• One of the other challenges of using a virtual machine is that if you have unused
memory within the environment, you cannot reallocate it. If you set up an
environment that has 9 gigabytes of memory, and 6 of those gigabytes are free,
you cannot do anything with that unused memory. With Docker, if you have free
memory, you can reallocate and reuse it across other containers used within the
Docker environment.
• Another challenge of virtual machines is that running multiples of them in a single
environment can lead to instability and performance issues. Docker, on the other
hand, is designed to run multiple containers in the same environment—it actually
gets better with more containers run in that hosted single Docker engine.
• Virtual machines have portability issues; the software can work on one machine,
but if you move that virtual machine to another machine, suddenly some of the
software won’t work, because some dependencies will not be inherited correctly.
Docker is designed to be able to run across multiple environments and to be
deployed easily across systems.
• The boot-up time for a virtual machine is about a few minutes, in contrast to the
milliseconds it takes for a Docker environment to boot up.
Advantages of Docker
Advantages of Docker
• As noted previously, you can do rapid deployment using Docker. The
environment itself is highly portable and was designed with
efficiencies that allow you to run multiple Docker containers in a
single environment, unlike traditional virtual machine
environments.
• The configuration itself can be scripted through a language called
YAML, which allows you to describe the Docker environment you
want to create. This, in turn, allows you to scale your environment
quickly. But probably the most critical advantage these days is
security.
• You have to ensure that the environment you’re running is highly
secure yet highly scalable, and Docker takes security very seriously.
You’ll see it as one of the key components of the agile architecture
of the system you’re implementing.
• Now that you know the advantages of Docker, the next thing you
need to know in this getting started with docker tutorial is how it
works and its components.
How Does Docker Work?
• Docker works via a Docker engine that is
composed of two key elements: a server and a
client; and the communication between the
two is via REST API. The server communicates
the instructions to the client. On older
Windows and Mac systems, you can take
advantage of the Docker toolbox, which allows
you to control the Docker engine using
Compose and Kitematic.
Components of Docker
• There are four components that we will
discuss in this getting started with docker
tutorial:
• Docker client and server
• Docker image
• Docker registry
• Docker container
List of Docker Commands
List of Docker Commands cont..
List of Docker Commands cont..
• Stop a running container
$docker stop [CONTAINER_NAME]
• Restart a running container
$docker restart [CONTAINER]
• Kill the running containers
$docker Kill [CONTAINER]
• Attach local standard input, output, and error
streams to a running container
$docker attach [CONTAINER]
• Block a container
$docker wait [CONTAINER]
• Pull an image from a registry
$docker pull [OPTIONS] NAME[:TAG]
• Push an image to a registry
$docker push [OPTIONS] NAME[:TAG]
• Run a command in a running container
$docker exec [OPTIONS] CONTAINER COMMAND
[ARG...]

More Related Content

Similar to Unit No. III Docker ppt part 2.pdf Cloud Microservices & Application (20)

PPTX
ma-formation-en-Docker-jlklk,nknkjn.pptx
imenhamada17
 
PPTX
CONTAINERIZATION WITH DOCKER .pptx
SanjuGamesphere
 
PDF
Journey to the devops automation with docker kubernetes and openshift
Yusuf Hadiwinata Sutandar
 
PDF
Axigen on docker
BUSINESS SOFTWARES & SOLUTIONS
 
PDF
Docker for dev
Erik Talboom
 
PPTX
Webinar : Docker in Production
Newt Global Consulting LLC
 
PDF
Docker Interview Questions
Satyam Jaiswal
 
PDF
DEVOPS UNIT 4 docker and services commands
billuandtanya
 
DOCX
Overview of Docker
GauranG Bajpai
 
PPTX
Working ,Introduction to Docker, Scope,,
gauravnainwal2291
 
PDF
Docker Use Cases.pdf
Simform
 
PDF
What Is Docker_ A Guide for Full Stack Developers to Simplify Deployment.pdf
khushnuma khan
 
PDF
Docker interview Questions-2.pdf
Yogeshwaran R
 
PDF
A curtain-raiser to the container world Docker & Kubernetes
zekeLabs Technologies
 
PDF
Docker
Abhishek Tomar
 
PPTX
You, and Me, and Docker Makes Three
Christopher Grayson
 
PDF
What-Is-Docker?
VinamraPatil2
 
PPT
Docker_tech_guild ppt.ppt technical guild
AkshayaM79
 
PPTX
What is Docker?
Shubhrank Rastogi
 
PPTX
Docker - A curtain raiser to the Container world
zekeLabs Technologies
 
ma-formation-en-Docker-jlklk,nknkjn.pptx
imenhamada17
 
CONTAINERIZATION WITH DOCKER .pptx
SanjuGamesphere
 
Journey to the devops automation with docker kubernetes and openshift
Yusuf Hadiwinata Sutandar
 
Docker for dev
Erik Talboom
 
Webinar : Docker in Production
Newt Global Consulting LLC
 
Docker Interview Questions
Satyam Jaiswal
 
DEVOPS UNIT 4 docker and services commands
billuandtanya
 
Overview of Docker
GauranG Bajpai
 
Working ,Introduction to Docker, Scope,,
gauravnainwal2291
 
Docker Use Cases.pdf
Simform
 
What Is Docker_ A Guide for Full Stack Developers to Simplify Deployment.pdf
khushnuma khan
 
Docker interview Questions-2.pdf
Yogeshwaran R
 
A curtain-raiser to the container world Docker & Kubernetes
zekeLabs Technologies
 
You, and Me, and Docker Makes Three
Christopher Grayson
 
What-Is-Docker?
VinamraPatil2
 
Docker_tech_guild ppt.ppt technical guild
AkshayaM79
 
What is Docker?
Shubhrank Rastogi
 
Docker - A curtain raiser to the Container world
zekeLabs Technologies
 

Recently uploaded (20)

PPTX
MODULE 03 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
PPTX
fatigue in aircraft structures-221113192308-0ad6dc8c.pptx
aviatecofficial
 
PDF
WD2(I)-RFQ-GW-1415_ Shifting and Filling of Sand in the Pond at the WD5 Area_...
ShahadathHossain23
 
PPTX
2025 CGI Congres - Surviving agile v05.pptx
Derk-Jan de Grood
 
PDF
Design Thinking basics for Engineers.pdf
CMR University
 
PPTX
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
PDF
REINFORCEMENT LEARNING IN DECISION MAKING SEMINAR REPORT
anushaashraf20
 
PDF
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
PPTX
美国电子版毕业证南卡罗莱纳大学上州分校水印成绩单USC学费发票定做学位证书编号怎么查
Taqyea
 
PPTX
MODULE 04 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
PDF
Digital water marking system project report
Kamal Acharya
 
PPT
Footbinding.pptmnmkjkjkknmnnjkkkkkkkkkkkkkk
mamadoundiaye42742
 
PDF
Halide Perovskites’ Multifunctional Properties: Coordination Engineering, Coo...
TaameBerhe2
 
PDF
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
PPT
New_school_Engineering_presentation_011707.ppt
VinayKumar304579
 
PPTX
What is Shot Peening | Shot Peening is a Surface Treatment Process
Vibra Finish
 
PDF
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
PPTX
澳洲电子毕业证澳大利亚圣母大学水印成绩单UNDA学生证网上可查学历
Taqyea
 
PDF
Electrical Machines and Their Protection.pdf
Nabajyoti Banik
 
PDF
20ES1152 Programming for Problem Solving Lab Manual VRSEC.pdf
Ashutosh Satapathy
 
MODULE 03 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
fatigue in aircraft structures-221113192308-0ad6dc8c.pptx
aviatecofficial
 
WD2(I)-RFQ-GW-1415_ Shifting and Filling of Sand in the Pond at the WD5 Area_...
ShahadathHossain23
 
2025 CGI Congres - Surviving agile v05.pptx
Derk-Jan de Grood
 
Design Thinking basics for Engineers.pdf
CMR University
 
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
REINFORCEMENT LEARNING IN DECISION MAKING SEMINAR REPORT
anushaashraf20
 
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
美国电子版毕业证南卡罗莱纳大学上州分校水印成绩单USC学费发票定做学位证书编号怎么查
Taqyea
 
MODULE 04 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
Digital water marking system project report
Kamal Acharya
 
Footbinding.pptmnmkjkjkknmnnjkkkkkkkkkkkkkk
mamadoundiaye42742
 
Halide Perovskites’ Multifunctional Properties: Coordination Engineering, Coo...
TaameBerhe2
 
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
New_school_Engineering_presentation_011707.ppt
VinayKumar304579
 
What is Shot Peening | Shot Peening is a Surface Treatment Process
Vibra Finish
 
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
澳洲电子毕业证澳大利亚圣母大学水印成绩单UNDA学生证网上可查学历
Taqyea
 
Electrical Machines and Their Protection.pdf
Nabajyoti Banik
 
20ES1152 Programming for Problem Solving Lab Manual VRSEC.pdf
Ashutosh Satapathy
 
Ad

Unit No. III Docker ppt part 2.pdf Cloud Microservices & Application

  • 2. What Is Docker? Docker is a configuration management tool that helps a developer to wrap an application and its dependencies into a Docker Container for the development and deployment of software. People and organizations have driven the demand for new applications to new heights, so the pressure is on to keep up with the demand. The task becomes easier if developers have the right tools. Docker is one such tool, a popular platform dedicated to the development, shipment, and running of applications. Today, we will look at the best way to start using Docker. But before we get into the nuts and bolts of implementation, let’s refresh our understanding of this versatile and popular platform.
  • 3. What Is Docker? Cont.. • When getting started with Docker, we first need to understand Docker. Docker is an OS virtualized software platform that allows IT organizations to quickly create, deploy, and run applications in Docker containers, which have all the dependencies within them. The container itself is a very lightweight package with all the instructions and dependencies— such as frameworks, libraries, and bins— within it
  • 4. Dockers place The Docker container can be moved from environment to environment very easily. In a DevOps life cycle, Docker really shines when used for deployment. When you deploy your solution, you want to guarantee that the code tested will actually work in the production environment. In addition, when you're building and testing the code, it's beneficial to have a container running the solution at those stages because you can validate your work in the same environment used for production. You can use Docker throughout multiple stages of your DevOps cycle, but it is especially valuable in the deployment stage, especially since it allows developers to use rapid deployment. In addition, the environment itself is highly portable and was designed with efficiencies that will enable you to run multiple Docker containers in a single environment, unlike traditional virtual machine environments.
  • 6. Major difference in Docker & Virtual Machines
  • 7. In the image, you’ll notice some major differences, including: • The virtual environment has a hypervisor layer, whereas Docker has a Docker engine layer. • With a virtual machine, the memory usage is very high, whereas, in a Docker environment, memory usage is very low. • In terms of performance, when you start building out a virtual machine, particularly when you have more than one virtual machine on a server, the performance becomes poorer. With Docker, the performance is always high because of the single Docker engine. • In terms of portability, virtual machines just are not ideal. They’re still dependent on the host operating system, and a lot of problems can happen when you use virtual machines for portability. In contrast, Docker was designed for portability. You can actually build solutions in a Docker container, and the solution is guaranteed to work as you have built it no matter where it’s hosted. • The boot-up time for a virtual machine is fairly slow in comparison to the boot- up time for a Docker environment, in which boot-up is almost instantaneous
  • 9. Challenge's in uses of dockers • One of the other challenges of using a virtual machine is that if you have unused memory within the environment, you cannot reallocate it. If you set up an environment that has 9 gigabytes of memory, and 6 of those gigabytes are free, you cannot do anything with that unused memory. With Docker, if you have free memory, you can reallocate and reuse it across other containers used within the Docker environment. • Another challenge of virtual machines is that running multiples of them in a single environment can lead to instability and performance issues. Docker, on the other hand, is designed to run multiple containers in the same environment—it actually gets better with more containers run in that hosted single Docker engine. • Virtual machines have portability issues; the software can work on one machine, but if you move that virtual machine to another machine, suddenly some of the software won’t work, because some dependencies will not be inherited correctly. Docker is designed to be able to run across multiple environments and to be deployed easily across systems. • The boot-up time for a virtual machine is about a few minutes, in contrast to the milliseconds it takes for a Docker environment to boot up.
  • 11. Advantages of Docker • As noted previously, you can do rapid deployment using Docker. The environment itself is highly portable and was designed with efficiencies that allow you to run multiple Docker containers in a single environment, unlike traditional virtual machine environments. • The configuration itself can be scripted through a language called YAML, which allows you to describe the Docker environment you want to create. This, in turn, allows you to scale your environment quickly. But probably the most critical advantage these days is security. • You have to ensure that the environment you’re running is highly secure yet highly scalable, and Docker takes security very seriously. You’ll see it as one of the key components of the agile architecture of the system you’re implementing. • Now that you know the advantages of Docker, the next thing you need to know in this getting started with docker tutorial is how it works and its components.
  • 12. How Does Docker Work? • Docker works via a Docker engine that is composed of two key elements: a server and a client; and the communication between the two is via REST API. The server communicates the instructions to the client. On older Windows and Mac systems, you can take advantage of the Docker toolbox, which allows you to control the Docker engine using Compose and Kitematic.
  • 13. Components of Docker • There are four components that we will discuss in this getting started with docker tutorial: • Docker client and server • Docker image • Docker registry • Docker container
  • 14. List of Docker Commands
  • 15. List of Docker Commands cont..
  • 16. List of Docker Commands cont.. • Stop a running container $docker stop [CONTAINER_NAME] • Restart a running container $docker restart [CONTAINER] • Kill the running containers $docker Kill [CONTAINER]
  • 17. • Attach local standard input, output, and error streams to a running container $docker attach [CONTAINER] • Block a container $docker wait [CONTAINER] • Pull an image from a registry $docker pull [OPTIONS] NAME[:TAG]
  • 18. • Push an image to a registry $docker push [OPTIONS] NAME[:TAG] • Run a command in a running container $docker exec [OPTIONS] CONTAINER COMMAND [ARG...]