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
The internals and the latest trends of container runtimes
Akihiro Suda
 
PDF
DockerCC.pdf
Cesar Capillas
 
PDF
Introduction of Docker and Docker Compose
Dr. Ketan Parmar
 
PDF
Swarm: Native Docker Clustering
Royee Tager
 
PDF
Testing Docker Security Linuxlab 2017
Jose Manuel Ortega Candel
 
PPTX
Powercoders · Docker · Fall 2021.pptx
IgnacioTamayo2
 
PDF
Docker Up and Running for Web Developers
Amr Fawzy
 
PDF
Docker up and Running For Web Developers
BADR
 
PDF
Best Practices for Developing & Deploying Java Applications with Docker
Eric Smalling
 
PPT
Docker Devops document for short summary
AdiB912552
 
PPTX
Everything you need to know about Docker
Alican Akkuş
 
PDF
Introduction to Docker and Monitoring with InfluxData
InfluxData
 
PDF
Tokyo OpenStack Summit 2015: Unraveling Docker Security
Phil Estes
 
PDF
Unraveling Docker Security: Lessons From a Production Cloud
Salman Baset
 
PPTX
Docker: Introduction to Container Moduls
OpikTaufiq1
 
PDF
Docker - From Walking To Running
Giacomo Vacca
 
PDF
Docker
SangtongPeesing
 
PDF
Everything you need to know about containers security
Jose Manuel Ortega Candel
 
PPTX
Docker 1.11 Presentation
Sreenivas Makam
 
PPTX
Docker Container Security
Suraj Khetani
 
The internals and the latest trends of container runtimes
Akihiro Suda
 
DockerCC.pdf
Cesar Capillas
 
Introduction of Docker and Docker Compose
Dr. Ketan Parmar
 
Swarm: Native Docker Clustering
Royee Tager
 
Testing Docker Security Linuxlab 2017
Jose Manuel Ortega Candel
 
Powercoders · Docker · Fall 2021.pptx
IgnacioTamayo2
 
Docker Up and Running for Web Developers
Amr Fawzy
 
Docker up and Running For Web Developers
BADR
 
Best Practices for Developing & Deploying Java Applications with Docker
Eric Smalling
 
Docker Devops document for short summary
AdiB912552
 
Everything you need to know about Docker
Alican Akkuş
 
Introduction to Docker and Monitoring with InfluxData
InfluxData
 
Tokyo OpenStack Summit 2015: Unraveling Docker Security
Phil Estes
 
Unraveling Docker Security: Lessons From a Production Cloud
Salman Baset
 
Docker: Introduction to Container Moduls
OpikTaufiq1
 
Docker - From Walking To Running
Giacomo Vacca
 
Everything you need to know about containers security
Jose Manuel Ortega Candel
 
Docker 1.11 Presentation
Sreenivas Makam
 
Docker Container Security
Suraj Khetani
 
Ad

Recently uploaded (20)

PDF
Market Insight : ETH Dominance Returns
CIFDAQ
 
PDF
Lecture A - AI Workflows for Banking.pdf
Dr. LAM Yat-fai (林日辉)
 
PPTX
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
PDF
Productivity Management Software | Workstatus
Lovely Baghel
 
PDF
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
PPTX
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
PPTX
Building and Operating a Private Cloud with CloudStack and LINBIT CloudStack ...
ShapeBlue
 
PDF
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
PDF
How a Code Plagiarism Checker Protects Originality in Programming
Code Quiry
 
PDF
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
PPTX
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
PDF
OpenInfra ID 2025 - Are Containers Dying? Rethinking Isolation with MicroVMs.pdf
Muhammad Yuga Nugraha
 
PDF
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
PDF
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
PPTX
python advanced data structure dictionary with examples python advanced data ...
sprasanna11
 
PDF
UiPath on Tour London Community Booth Deck
UiPathCommunity
 
PDF
Upskill to Agentic Automation 2025 - Kickoff Meeting
DianaGray10
 
PDF
Integrating IIoT with SCADA in Oil & Gas A Technical Perspective.pdf
Rejig Digital
 
PPTX
Earn Agentblazer Status with Slack Community Patna.pptx
SanjeetMishra29
 
PDF
Alpha Altcoin Setup : TIA - 19th July 2025
CIFDAQ
 
Market Insight : ETH Dominance Returns
CIFDAQ
 
Lecture A - AI Workflows for Banking.pdf
Dr. LAM Yat-fai (林日辉)
 
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
Productivity Management Software | Workstatus
Lovely Baghel
 
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
Building and Operating a Private Cloud with CloudStack and LINBIT CloudStack ...
ShapeBlue
 
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
How a Code Plagiarism Checker Protects Originality in Programming
Code Quiry
 
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
OpenInfra ID 2025 - Are Containers Dying? Rethinking Isolation with MicroVMs.pdf
Muhammad Yuga Nugraha
 
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
python advanced data structure dictionary with examples python advanced data ...
sprasanna11
 
UiPath on Tour London Community Booth Deck
UiPathCommunity
 
Upskill to Agentic Automation 2025 - Kickoff Meeting
DianaGray10
 
Integrating IIoT with SCADA in Oil & Gas A Technical Perspective.pdf
Rejig Digital
 
Earn Agentblazer Status with Slack Community Patna.pptx
SanjeetMishra29
 
Alpha Altcoin Setup : TIA - 19th July 2025
CIFDAQ
 
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