SlideShare a Scribd company logo
Docker Up and Running
Victor S. Recio
Docker Organizer Santo Domingo
@vsrecio / vrecio@nercore.com
Agenda
● The Docker Architecture
● Cgroups / Namespaces
● Docker engine/ daemon & API
● Docker Compose
● Networking
● Swarm
● Machine
● Seguridad
● Storage
Demo
The Docker Architecture
Underlying Technologies
cgroups, which are responsible for
managing resources used by a container (e.
g., CPU and memory usage). They are also
responsible for freezing and unfreezing
containers, as used in the docker pause
functionality.
namespaces are responsible for isolating
containers; making sure that a container’s
filesystem, hostname, users, networking,
and processes are separated from the rest
of the system.
Docker Engine
Docker Engine runs on Linux to create the operating environment
for your distributed applications.
Docker Remote API
v1.22 API
● List containers
● Create a container
● Inspect a container
● List processes running inside a container
● Get container logs
● Inspect changes on a container’s
filesystem
● Export a container
● Get container stats based on resource usage
● Resize a container TTY
● Start a container
● Stop a container
● Restart a container
● Kill a container
● Update a container
● Rename a container
● Pause a container
Docker Compose
version: '2'
services:
db:
image: mysql
web:
build: .
command: python manage.py
runserver 0.0.0.0:8000
volumes:
- .:/code
ports:
- "8000:8000"
depends_on:
- db
Networking
$ docker network inspect isolated_nw
[
{
"Name": "CONTAINER",
"Id": "$ID",
"Scope": "local",
"Driver": "bridge",
"IPAM": {
"Driver": "default",
"Config": [
{
"Subnet": "172.21.0.0/16",
"Gateway": "172.21.0.1/16"
}
]
},
"Containers": {},
"Options": {}
}
]
● docker network create
● docker network connect
● docker network ls
● docker network rm
● docker network disconnect
● docker network inspect
Docker Swarm overview
Docker Swarm is native clustering for Docker. It turns a pool of Docker
hosts into a single, virtual Docker host.
Docker Swarm overview
Docker Machine
Docker security
Docker containers are, by default, quite secure; especially if you
take care of running your processes inside the containers as non-
privileged users (i.e., non-root).
● Kernel namespaces
● Control groups
Manage data in containers
● Volumes are initialized when a container is created.
● Data volumes can be shared and reused among containers.
● Changes to a data volume are made directly.
● Changes to a data volume will not be included when you update an image.
● Data volumes persist even if the container itself is deleted.
Data volumes
A data volume is a specially-designated directory within one or more
containers that bypasses the Union File System.
Manage data in containers
Mounts": [
{
"Name": "fac362...80535",
"Source":
"/var/lib/docker/volumes/$ID/_data",
"Destination": "/webapp",
"Driver": "local",
"Mode": "",
"RW": true,
"Propagation": ""
}
]
Demo

More Related Content

What's hot (20)

PDF
Docker Started
Victor S. Recio
 
PDF
Continuous integration with Docker and Ansible
Dmytro Slupytskyi
 
PDF
CoreOS Overview
Victor S. Recio
 
PDF
Kubernetes Boston — Custom High Availability of Kubernetes
Mike Splain
 
PDF
Docker orchestration using core os and ansible - Ansible IL 2015
Leonid Mirsky
 
PDF
Ansible Oxford - Cows & Containers
jonatanblue
 
PPTX
Comprehensive Monitoring for Docker
Christian Beedgen
 
PDF
Docker 101 - from 0 to Docker in 30 minutes
Luciano Fiandesio
 
PDF
Docker Swarm 0.2.0
Docker, Inc.
 
PPTX
CoreOS Overview and Current Status
Sreenivas Makam
 
PPT
Running High Performance and Fault Tolerant Elasticsearch Clusters on Docker
Sematext Group, Inc.
 
PPTX
Orchestration? You Don't Need Orchestration. What You Want Is Choreography by...
Docker, Inc.
 
PPTX
Getting Started with Docker
Geeta Vinnakota
 
PDF
파이썬 개발환경 구성하기의 끝판왕 - Docker Compose
raccoony
 
PDF
Ansible not only for Dummies
Łukasz Proszek
 
PDF
Docker n co
Rohit Jnagal
 
PPTX
Django via Docker
Brenden West
 
PPTX
Austin - Container Days - Docker 101
Bill Maxwell
 
PPTX
Docker 1.9 Feature Overview
Sreenivas Makam
 
PPTX
Exploring Docker Security
Patrick Kleindienst
 
Docker Started
Victor S. Recio
 
Continuous integration with Docker and Ansible
Dmytro Slupytskyi
 
CoreOS Overview
Victor S. Recio
 
Kubernetes Boston — Custom High Availability of Kubernetes
Mike Splain
 
Docker orchestration using core os and ansible - Ansible IL 2015
Leonid Mirsky
 
Ansible Oxford - Cows & Containers
jonatanblue
 
Comprehensive Monitoring for Docker
Christian Beedgen
 
Docker 101 - from 0 to Docker in 30 minutes
Luciano Fiandesio
 
Docker Swarm 0.2.0
Docker, Inc.
 
CoreOS Overview and Current Status
Sreenivas Makam
 
Running High Performance and Fault Tolerant Elasticsearch Clusters on Docker
Sematext Group, Inc.
 
Orchestration? You Don't Need Orchestration. What You Want Is Choreography by...
Docker, Inc.
 
Getting Started with Docker
Geeta Vinnakota
 
파이썬 개발환경 구성하기의 끝판왕 - Docker Compose
raccoony
 
Ansible not only for Dummies
Łukasz Proszek
 
Docker n co
Rohit Jnagal
 
Django via Docker
Brenden West
 
Austin - Container Days - Docker 101
Bill Maxwell
 
Docker 1.9 Feature Overview
Sreenivas Makam
 
Exploring Docker Security
Patrick Kleindienst
 

Similar to Docker up and running (20)

PDF
Docker
SangtongPeesing
 
PDF
Introduction to Docker and Monitoring with InfluxData
InfluxData
 
PDF
Cloud Native Computing - Part III - Containers
Linjith Kunnon
 
PDF
Docker, but what it is?
Julien Maitrehenry
 
PPTX
Lectre # 11 (VS&S). virtualization .pptx
farheengul004
 
PDF
Docker and-containers-for-development-and-deployment-scale12x
rkr10
 
PPTX
Everything you need to know about Docker
Alican Akkuş
 
PDF
Introduction to Docker (as presented at December 2013 Global Hackathon)
Jérôme Petazzoni
 
PPTX
Introducing & playing with Docker | Manel Martinez | 1st Docker Crete Meetup
Alexandra Karapidaki
 
PDF
An Introduction To Docker
Gabriella Davis
 
PDF
Docker Essentials Workshop— Innovation Labs July 2020
CloudHero
 
PPTX
You, and Me, and Docker Makes Three
Christopher Grayson
 
PPTX
Introduction To Docker, Docker Compose, Docker Swarm
An Nguyen
 
PDF
Docker for developers
andrzejsydor
 
PDF
Accelerate your software development with Docker
Andrey Hristov
 
PPTX
Accelerate your development with Docker
Andrey Hristov
 
PDF
Docker From Scratch
Giacomo Vacca
 
PDF
Nebulaworks Docker Overview 09-22-2015
Chris Ciborowski
 
ODP
Docker and stuff
Raimondas Rimkevičius
 
PPTX
Containerization and Docker
Megha Bansal
 
Introduction to Docker and Monitoring with InfluxData
InfluxData
 
Cloud Native Computing - Part III - Containers
Linjith Kunnon
 
Docker, but what it is?
Julien Maitrehenry
 
Lectre # 11 (VS&S). virtualization .pptx
farheengul004
 
Docker and-containers-for-development-and-deployment-scale12x
rkr10
 
Everything you need to know about Docker
Alican Akkuş
 
Introduction to Docker (as presented at December 2013 Global Hackathon)
Jérôme Petazzoni
 
Introducing & playing with Docker | Manel Martinez | 1st Docker Crete Meetup
Alexandra Karapidaki
 
An Introduction To Docker
Gabriella Davis
 
Docker Essentials Workshop— Innovation Labs July 2020
CloudHero
 
You, and Me, and Docker Makes Three
Christopher Grayson
 
Introduction To Docker, Docker Compose, Docker Swarm
An Nguyen
 
Docker for developers
andrzejsydor
 
Accelerate your software development with Docker
Andrey Hristov
 
Accelerate your development with Docker
Andrey Hristov
 
Docker From Scratch
Giacomo Vacca
 
Nebulaworks Docker Overview 09-22-2015
Chris Ciborowski
 
Docker and stuff
Raimondas Rimkevičius
 
Containerization and Docker
Megha Bansal
 
Ad

Recently uploaded (20)

PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PDF
Per Axbom: The spectacular lies of maps
Nexer Digital
 
PDF
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PPTX
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PDF
Market Insight : ETH Dominance Returns
CIFDAQ
 
PPTX
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
Per Axbom: The spectacular lies of maps
Nexer Digital
 
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
The Future of Artificial Intelligence (AI)
Mukul
 
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
Market Insight : ETH Dominance Returns
CIFDAQ
 
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Ad

Docker up and running

  • 1. Docker Up and Running Victor S. Recio Docker Organizer Santo Domingo @vsrecio / [email protected]
  • 2. Agenda ● The Docker Architecture ● Cgroups / Namespaces ● Docker engine/ daemon & API ● Docker Compose ● Networking ● Swarm ● Machine ● Seguridad ● Storage Demo
  • 4. Underlying Technologies cgroups, which are responsible for managing resources used by a container (e. g., CPU and memory usage). They are also responsible for freezing and unfreezing containers, as used in the docker pause functionality. namespaces are responsible for isolating containers; making sure that a container’s filesystem, hostname, users, networking, and processes are separated from the rest of the system.
  • 5. Docker Engine Docker Engine runs on Linux to create the operating environment for your distributed applications.
  • 6. Docker Remote API v1.22 API ● List containers ● Create a container ● Inspect a container ● List processes running inside a container ● Get container logs ● Inspect changes on a container’s filesystem ● Export a container ● Get container stats based on resource usage ● Resize a container TTY ● Start a container ● Stop a container ● Restart a container ● Kill a container ● Update a container ● Rename a container ● Pause a container
  • 7. Docker Compose version: '2' services: db: image: mysql web: build: . command: python manage.py runserver 0.0.0.0:8000 volumes: - .:/code ports: - "8000:8000" depends_on: - db
  • 8. Networking $ docker network inspect isolated_nw [ { "Name": "CONTAINER", "Id": "$ID", "Scope": "local", "Driver": "bridge", "IPAM": { "Driver": "default", "Config": [ { "Subnet": "172.21.0.0/16", "Gateway": "172.21.0.1/16" } ] }, "Containers": {}, "Options": {} } ] ● docker network create ● docker network connect ● docker network ls ● docker network rm ● docker network disconnect ● docker network inspect
  • 9. Docker Swarm overview Docker Swarm is native clustering for Docker. It turns a pool of Docker hosts into a single, virtual Docker host.
  • 12. Docker security Docker containers are, by default, quite secure; especially if you take care of running your processes inside the containers as non- privileged users (i.e., non-root). ● Kernel namespaces ● Control groups
  • 13. Manage data in containers ● Volumes are initialized when a container is created. ● Data volumes can be shared and reused among containers. ● Changes to a data volume are made directly. ● Changes to a data volume will not be included when you update an image. ● Data volumes persist even if the container itself is deleted. Data volumes A data volume is a specially-designated directory within one or more containers that bypasses the Union File System.
  • 14. Manage data in containers Mounts": [ { "Name": "fac362...80535", "Source": "/var/lib/docker/volumes/$ID/_data", "Destination": "/webapp", "Driver": "local", "Mode": "", "RW": true, "Propagation": "" } ]
  • 15. Demo