SlideShare a Scribd company logo
Master Docker
Key concepts
What do you know
about Docker?
How do you build
and run
applications?
Master Docker - first meetup
Images
What is an image?
●
A transportable file system
●
Contains everything an app needs to run
– App source code or binary
– App dependencies (configuration files, libraries...)
More about images
●
An image typically contains a union of layered filesystems stacked on
top of each other.
●
Each layer consists of:
– Filesystem changes
– Metadata
●
Using layers, we can build a new image on top of another by simply
adding a new layer
Dockerfile
●
A Dockerfile is a text document that contains all the commands a user
could call on the command line to assemble an image
●
It’s like the source code for your image
https://docs.docker.com/engine/reference/builder
Demo:
from an image to a
container
Master Docker - first meetup
What was that? A container?
●
A process or a set of processes isolated from the rest of the system
●
Necessary files for their execution are provided by a separate image
●
This means that they work the same way in different environment
VMs vs Containers
VMs Containers
https://www.docker.com/resources/what-container
Docker 101
What is Docker ?
Docker is an open platform for developing, shipping, and
running applications.
Docker enables you to separate your applications from your
infrastructure so you can deliver software quickly.
https://docs.docker.com/engine/docker-overview/
mysql
bash
httpd
w3wp.exe nginx
w3wp.exe nginx
w3wp.ex
e
ngin
x
PS C:>
:~$
Manager Worker Worker
PS> docker
…
Worker
Demo
one more time
Run a container
• docker container run <image>
• docker container run hello-world
Hello World: What Happened?
$ docker run hello-world
Unable to find image locally
latest : Pulling from library / hello-world
Status: Downloaded newer image forhello-world:latest
Hello from Docker!
.
.
.
DockerEngine
Linux
play-with-docker.com
❹
❷
❶
❸
hel l o-worl d:l atest
ImageRegistry
https://store.docker.com
Repository: library
Image: hello-world
Tag: latest
Pull images
• docker image pull <image>
• docker image pull alpine
• docker image ls
• docker container run alpine ls -l
DockerEngine
Linux
$ docker run alpine ls –l
❶ Run the alpine container and send
l s -l
alpine launchesand runsl s -l
❷
DockerEngine
Linux
Alpine
container
$ l s –l
alpineOS
DockerEngine
Linux
t ot al 8
dr wxr - xr - x . . . bi n
dr wxr - xr - x . . . dev
dr wxr - xr - x . . . et c
dr wxr - xr - x . . . home
.
.
❸
alpine shutsdown and output of l s –l
sent back to host OS
docker r un Details
More runs
• docker container run alpine /bin/sh
• docker container run -it alpine /bin/sh
List containers
• docker container ls
• docker container ls -a
Docker Container Instances
Output of docker container ls -a
alpine
ls –l
Exi t ed ( 0)
alpine
/bin/sh
Exi t ed ( 0)
alpine
echo
Exi t ed ( 0)
hello-world
/hello
Exi t ed ( 0)
Container
Instances
Container IDs 36171a5da744 a6a9d46d0b2f c317d0a9e3d2ff0a5c3750b9
Container Names lonely_kilbyfervent_newton stupefied_mcclintockelated_ramanujan
It’s time to get your hands
dirty
What’s Next
★ Official Documentation:
https://docs.docker.com/
★ Play With Docker Classroom:
https://training.play-with-docker.com/
★ Valuable Docker Links:
https://www.nkode.io/2014/08/24/valuable-docker-links.html
★ Example project including Dockerfile and docker-compose:
https://github.com/youben11/open-class
Questions ?
Thanks!
Ayoub Benaissa
Email:
a.benaissa@esi-sba.dz
LinkedIn:
linkedin.com/in/ayoub-benaissa/
Twitter:
@y0uben11

More Related Content

PDF
Intro To Docker
PPTX
PDF
Docker - Getting Started
PPTX
Docker intro
PPTX
Performance comparison between Linux Containers and Virtual Machines
PPSX
Docker and containers - Presentation Slides by Priyadarshini Anand
PDF
Michigan IT Symposium 2017 - Container BOF
PPTX
Containerization and Docker
Intro To Docker
Docker - Getting Started
Docker intro
Performance comparison between Linux Containers and Virtual Machines
Docker and containers - Presentation Slides by Priyadarshini Anand
Michigan IT Symposium 2017 - Container BOF
Containerization and Docker

What's hot (20)

PDF
PDF
Hands-On Session Docker
PDF
Docker compose and swarm
PDF
Docker Fundamentals
PDF
Introduction to docker
PDF
Introdution to Docker (theory and hands on) dbCafé - dbTrento
PPT
Docker introduction
PDF
Docker 101 Workshop slides (JavaOne 2017)
PDF
Introduction to Docker Compose | Docker Intermediate Workshop
PPTX
Containers and Cloud: From LXC to Docker to Kubernetes
PDF
Docker workshop
PDF
Docker architecture-04-1
PPTX
Introduction to Docker - What is it and how is it compared to VM's
PDF
Docker & JVM: A Perfect Match
PDF
Dockerfile
PPTX
Containers and docker
PPTX
Docker introduction for the beginners
PDF
Adventures in docker compose
PDF
Introduction to Docker
PPTX
Docker Basic Presentation
Hands-On Session Docker
Docker compose and swarm
Docker Fundamentals
Introduction to docker
Introdution to Docker (theory and hands on) dbCafé - dbTrento
Docker introduction
Docker 101 Workshop slides (JavaOne 2017)
Introduction to Docker Compose | Docker Intermediate Workshop
Containers and Cloud: From LXC to Docker to Kubernetes
Docker workshop
Docker architecture-04-1
Introduction to Docker - What is it and how is it compared to VM's
Docker & JVM: A Perfect Match
Dockerfile
Containers and docker
Docker introduction for the beginners
Adventures in docker compose
Introduction to Docker
Docker Basic Presentation
Ad

Similar to Master Docker - first meetup (20)

PPTX
Novices guide to docker
PDF
A Hands-on Introduction to Docker
PDF
Docker, but what it is?
PDF
Introduction to Docker - Learning containerization XP conference 2016
PDF
Docker by Example - Basics
PDF
Hack the whale
PPTX
Docker Introductory workshop
PDF
Docker 101
PDF
Docker basics
PPTX
Docker 101
PPTX
Getting Started With Docker: Simplifying DevOps
PPTX
Docker for Fun and Profit
PDF
Présentation de Docker
PPTX
Powercoders · Docker · Fall 2021.pptx
PDF
Docker slides
PPTX
Getting Started with Docker
PDF
Docker From Scratch
PPTX
Introduction to Docker
PDF
JDO 2019: Tips and Tricks from Docker Captain - Łukasz Lach
PDF
Introduction to Docker at Glidewell Laboratories in Orange County
Novices guide to docker
A Hands-on Introduction to Docker
Docker, but what it is?
Introduction to Docker - Learning containerization XP conference 2016
Docker by Example - Basics
Hack the whale
Docker Introductory workshop
Docker 101
Docker basics
Docker 101
Getting Started With Docker: Simplifying DevOps
Docker for Fun and Profit
Présentation de Docker
Powercoders · Docker · Fall 2021.pptx
Docker slides
Getting Started with Docker
Docker From Scratch
Introduction to Docker
JDO 2019: Tips and Tricks from Docker Captain - Łukasz Lach
Introduction to Docker at Glidewell Laboratories in Orange County
Ad

Recently uploaded (20)

PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Machine learning based COVID-19 study performance prediction
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
MYSQL Presentation for SQL database connectivity
Agricultural_Statistics_at_a_Glance_2022_0.pdf
cuic standard and advanced reporting.pdf
Electronic commerce courselecture one. Pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Per capita expenditure prediction using model stacking based on satellite ima...
Encapsulation_ Review paper, used for researhc scholars
Chapter 3 Spatial Domain Image Processing.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Digital-Transformation-Roadmap-for-Companies.pptx
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
“AI and Expert System Decision Support & Business Intelligence Systems”
NewMind AI Weekly Chronicles - August'25 Week I
Machine learning based COVID-19 study performance prediction
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
MYSQL Presentation for SQL database connectivity

Master Docker - first meetup

  • 2. What do you know about Docker?
  • 3. How do you build and run applications?
  • 6. What is an image? ● A transportable file system ● Contains everything an app needs to run – App source code or binary – App dependencies (configuration files, libraries...)
  • 7. More about images ● An image typically contains a union of layered filesystems stacked on top of each other. ● Each layer consists of: – Filesystem changes – Metadata ● Using layers, we can build a new image on top of another by simply adding a new layer
  • 8. Dockerfile ● A Dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image ● It’s like the source code for your image https://docs.docker.com/engine/reference/builder
  • 9. Demo: from an image to a container
  • 11. What was that? A container? ● A process or a set of processes isolated from the rest of the system ● Necessary files for their execution are provided by a separate image ● This means that they work the same way in different environment
  • 12. VMs vs Containers VMs Containers https://www.docker.com/resources/what-container
  • 14. What is Docker ? Docker is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly. https://docs.docker.com/engine/docker-overview/
  • 19. Manager Worker Worker PS> docker … Worker
  • 21. Run a container • docker container run <image> • docker container run hello-world
  • 22. Hello World: What Happened? $ docker run hello-world Unable to find image locally latest : Pulling from library / hello-world Status: Downloaded newer image forhello-world:latest Hello from Docker! . . . DockerEngine Linux play-with-docker.com ❹ ❷ ❶ ❸ hel l o-worl d:l atest ImageRegistry https://store.docker.com Repository: library Image: hello-world Tag: latest
  • 23. Pull images • docker image pull <image> • docker image pull alpine • docker image ls • docker container run alpine ls -l
  • 24. DockerEngine Linux $ docker run alpine ls –l ❶ Run the alpine container and send l s -l alpine launchesand runsl s -l ❷ DockerEngine Linux Alpine container $ l s –l alpineOS DockerEngine Linux t ot al 8 dr wxr - xr - x . . . bi n dr wxr - xr - x . . . dev dr wxr - xr - x . . . et c dr wxr - xr - x . . . home . . ❸ alpine shutsdown and output of l s –l sent back to host OS docker r un Details
  • 25. More runs • docker container run alpine /bin/sh • docker container run -it alpine /bin/sh
  • 26. List containers • docker container ls • docker container ls -a
  • 27. Docker Container Instances Output of docker container ls -a alpine ls –l Exi t ed ( 0) alpine /bin/sh Exi t ed ( 0) alpine echo Exi t ed ( 0) hello-world /hello Exi t ed ( 0) Container Instances Container IDs 36171a5da744 a6a9d46d0b2f c317d0a9e3d2ff0a5c3750b9 Container Names lonely_kilbyfervent_newton stupefied_mcclintockelated_ramanujan
  • 28. It’s time to get your hands dirty
  • 29. What’s Next ★ Official Documentation: https://docs.docker.com/ ★ Play With Docker Classroom: https://training.play-with-docker.com/ ★ Valuable Docker Links: https://www.nkode.io/2014/08/24/valuable-docker-links.html ★ Example project including Dockerfile and docker-compose: https://github.com/youben11/open-class