SlideShare a Scribd company logo
DOCKER
An introduction
Matthias Noback
@matthiasnoback
info@matthiasnoback.nl
CONTAINERS
"Just" processes, connected through the network
Your application
MySQL
Varnish
Memcache
Redis
HAProxy
CONTAINERS
Are about isolation
Processes
Files
Networking
Resources
Users
DOCKER
A set of CLI scripts
docker build
docker run
docker volume
docker network
...
localhost
DOCKER
A daemon and a client
Docker
daemon
client
container container container
some-other-machine
DOCKER
A daemon and a client
Docker
daemon
client
container container container
IMAGES
Container blueprints
Files
Exposed ports
Volumes
IMAGES
Pull or build
Image
registry
image
Docker-
file
image
pull from use to build
IMAGE REGISTRY
hub.docker.com
IMAGE REGISTRY
Push your own images
Image
registry
push to
Docker-
file
image
use to build
CONTAINERS
Linked through
Networks
CONTAINERS
Configured through
Build process
Environment variables
Volume mounts
ASSIGNMENTS/
ALL.MD
Playing with docker and Dockerfiles
https://github.com/matthiasnoback/docker-workshop/
EXPOSE VS PUBLISH
A port is exposed by the image itself
Publishing it makes it accessible to the bridge network (possible conflicts)
You can map ports: [host port]:[container port]
DOCKERFILE
Describes the build process of a container image
FROM php:7.1-apache
COPY web/ /var/www/html/
RUN pecl install redis
RUN docker-php-ext-enable redis
Cached filesystem layers!
DOCKERFILE
Optimized build
FROM php:7.1-apache
RUN pecl install redis 
docker-php-ext-enable redis
COPY web/ /var/www/html/
BUILD CONTEXT
Files available while building the image
COPY web/ /var/www/html/
LOGGING
To stdout/stderr
No file rotation needed
You could look into logspout/Logstash/Kibana
There are also nice services for this
COPYING VS VOLUME MOUNTING
When to use what
Mount a volume while developing
Use COPY for creating the build artifact
READ-ONLY LAYERS
With a writeable layer on top
Stateful vs immutable
IMMUTABLE FILE SYSTEMS
How to store data on disk?
bind-mount volume
named volume ("volumes from")
fast/cache volume: tmpfs
CONTAINERS
Advantages
Self-contained ;)
Designed to be immutable (and predictable)
Infrastructure as code
Configuration has not been abstracted
Provisioning new servers is easy

More Related Content

PDF
Docker workshop
PDF
Docker with openstack
PDF
Docker from scratch
PPTX
Docker
PPTX
Hands on introduction to docker security for docker newbies
PPTX
Evotalks Docker Presentation
PDF
Intro To Docker
PPTX
Docker Basic Presentation
Docker workshop
Docker with openstack
Docker from scratch
Docker
Hands on introduction to docker security for docker newbies
Evotalks Docker Presentation
Intro To Docker
Docker Basic Presentation

What's hot (20)

PDF
Savosyuk Stanislav "Docker: Not to Be Confused with a Blue Whale"
PPTX
Docker introduction for the beginners
PPTX
Docker Networking - Boulder Linux Users Group (BLUG)
PPTX
Intro docker and demo monitor on docker
PPTX
Docker Presentation from Spiceworks All Access
PDF
Docker introduction - Part 1
PPTX
An HTML5 client to connect to the Hyper-V console
PPTX
Learning Dockers - Step by Step
PDF
Intro to Docker
PPTX
Lessons learned in reaching multi-host container networking
PDF
Introduction to Docker
PDF
GDG Lima - Docker Compose
PDF
Master Docker - first meetup
PDF
Docker Compose by Aanand Prasad
PDF
Docker & JVM: A Perfect Match
PPTX
PPSX
Docker and containers - Presentation Slides by Priyadarshini Anand
PPTX
PDF
How Reconnix Is Using Docker
PPTX
Academy PRO: Docker. Part 4
Savosyuk Stanislav "Docker: Not to Be Confused with a Blue Whale"
Docker introduction for the beginners
Docker Networking - Boulder Linux Users Group (BLUG)
Intro docker and demo monitor on docker
Docker Presentation from Spiceworks All Access
Docker introduction - Part 1
An HTML5 client to connect to the Hyper-V console
Learning Dockers - Step by Step
Intro to Docker
Lessons learned in reaching multi-host container networking
Introduction to Docker
GDG Lima - Docker Compose
Master Docker - first meetup
Docker Compose by Aanand Prasad
Docker & JVM: A Perfect Match
Docker and containers - Presentation Slides by Priyadarshini Anand
How Reconnix Is Using Docker
Academy PRO: Docker. Part 4
Ad

Similar to Docker workshop (20)

PPTX
Docker for .net developer
PPTX
Docker for .NET Developers
PPTX
Getting Started With Docker: Simplifying DevOps
PPTX
Docker for developers z java
PPTX
Weblogic 12c on docker
PDF
Docker
PPTX
Introduction To Docker
PDF
Docker in practice
PPTX
Docker for .NET Developers
PPTX
Docker - fundamental
PPTX
Docker : Container Virtualization
PPTX
Docker
POTX
Deploying .net core apps to Docker - dotnetConf Local Bengaluru
PDF
Docker, but what it is?
PPTX
Docker: From Zero to Hero
PDF
Docker for developers
PPTX
Introduction to Dockers and containers
PPTX
Docker
PDF
Docker basics
PDF
Docker From Scratch
Docker for .net developer
Docker for .NET Developers
Getting Started With Docker: Simplifying DevOps
Docker for developers z java
Weblogic 12c on docker
Docker
Introduction To Docker
Docker in practice
Docker for .NET Developers
Docker - fundamental
Docker : Container Virtualization
Docker
Deploying .net core apps to Docker - dotnetConf Local Bengaluru
Docker, but what it is?
Docker: From Zero to Hero
Docker for developers
Introduction to Dockers and containers
Docker
Docker basics
Docker From Scratch
Ad

More from Matthias Noback (20)

PDF
Rector fireside chat - PHPMiNDS meetup
PDF
Service abstractions - Part 1: Queries
PDF
Hexagonal Symfony - SymfonyCon Amsterdam 2019
PDF
Advanced web application architecture - PHP Barcelona
PDF
A testing strategy for hexagonal applications
PDF
Advanced web application architecture - Talk
PDF
DPC 2019, Amsterdam: Beyond design patterns and principles - writing good OO ...
PDF
Layers, ports and adapters
PDF
Beyond design principles and patterns (muCon 2019 edition)
PDF
Brutal refactoring, lying code, the Churn, and other emotional stories from L...
PDF
Advanced web application architecture Way2Web
PDF
Brutal refactoring, lying code, the Churn, and other emotional stories from L...
PDF
Beyond Design Principles and Patterns
PDF
Building Autonomous Services
PDF
Advanced Application Architecture Symfony Live Berlin 2018
PDF
Designing for Autonomy
PDF
Docker swarm workshop
PDF
Docker compose workshop
PDF
Building autonomous services
PDF
Designing for autonomy
Rector fireside chat - PHPMiNDS meetup
Service abstractions - Part 1: Queries
Hexagonal Symfony - SymfonyCon Amsterdam 2019
Advanced web application architecture - PHP Barcelona
A testing strategy for hexagonal applications
Advanced web application architecture - Talk
DPC 2019, Amsterdam: Beyond design patterns and principles - writing good OO ...
Layers, ports and adapters
Beyond design principles and patterns (muCon 2019 edition)
Brutal refactoring, lying code, the Churn, and other emotional stories from L...
Advanced web application architecture Way2Web
Brutal refactoring, lying code, the Churn, and other emotional stories from L...
Beyond Design Principles and Patterns
Building Autonomous Services
Advanced Application Architecture Symfony Live Berlin 2018
Designing for Autonomy
Docker swarm workshop
Docker compose workshop
Building autonomous services
Designing for autonomy

Recently uploaded (20)

PPTX
MYSQL Presentation for SQL database connectivity
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
A Presentation on Artificial Intelligence
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Encapsulation theory and applications.pdf
PDF
Machine learning based COVID-19 study performance prediction
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
cuic standard and advanced reporting.pdf
PDF
Approach and Philosophy of On baking technology
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
MYSQL Presentation for SQL database connectivity
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Review of recent advances in non-invasive hemoglobin estimation
A Presentation on Artificial Intelligence
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
NewMind AI Weekly Chronicles - August'25 Week I
Encapsulation theory and applications.pdf
Machine learning based COVID-19 study performance prediction
20250228 LYD VKU AI Blended-Learning.pptx
Understanding_Digital_Forensics_Presentation.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
Reach Out and Touch Someone: Haptics and Empathic Computing
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Digital-Transformation-Roadmap-for-Companies.pptx
Unlocking AI with Model Context Protocol (MCP)
cuic standard and advanced reporting.pdf
Approach and Philosophy of On baking technology
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf

Docker workshop