SlideShare a Scribd company logo
DOCKER 1.12
INTRODUCTION
Alex Vranceanu
DOCKER 1.12 INTRODUCTION
WHAT’S NEW?
▸Docker Swarm Mode
▸Services
▸Distributed Application Bundles
▸Routing Mesh
▸Container Healthcheck
▸Plugins
▸Security out of the box
DOCKER 1.12 INTRODUCTION - SWARM MODE
SWARM MODE
$ docker swarm init
$ docker swarm join <IP-OF-MANAGER>:2377
M
W
M
W W W
DOCKER 1.12 INTRODUCTION - SERVICES
SERVICES
$ docker service create —name nginx —replicas 2 —network frontend nginx
$ docker network create —driver overlay —subnet 10.0.100.0/24 frontend
FRONTEND
M
W
M
W W W
NGINX NGINX
DOCKER 1.12 INTRODUCTION - SERVICES
NODE FAILURE
FRONTEND
M
W
M
W W
NGINX NGINX
W
NGINX
DOCKER 1.12 INTRODUCTION - SERVICES
SERVICE SCALING
FRONTEND
M
W
M
W W
NGINX NGINX
$ docker service scale nginx=4
NGINX
NGINX
DOCKER 1.12 INTRODUCTION - SERVICES
GLOBAL SERVICES
FRONTEND
M
W
M
W W
NGINX NGINX
$ docker service create —name agent —mode=global agent:latest
NGINX
NGINX
AG AG AG
AGAG
DOCKER 1.12 INTRODUCTION - SERVICES
SERVICE CONSTRAINTS
FRONTEND
M
W
M
W W
$ docker service create —name nginx —replicas 4 —network frontend —constraint
com.example.storage=“ssd” nginx
docker daemon —label
com.example.storage=“ssd”
NGINX NGINX
NGINX NGINX
DOCKER 1.12 INTRODUCTION - DAB
SERVICES
WEB-APP
WEB-APP.1
WEB-APP.2
WEB-APP.3
NGINX:LATEST
CONTAINER
NGINX:LATEST
CONTAINER
NGINX:LATEST
CONTAINER
SERVICE TASKS CONTAINERS
DOCKER 1.12 INTRODUCTION - DAB
DISTRIBUTED APPLICATION BUNDLES
WEB-APP
WEB-APP.1
WEB-APP.2
WEB-APP.3
NGINX:LATEST
NGINX:LATEST
NGINX:LATEST
SERVICE TASKS CONTAINERS
STACK
WEB-APP
WEB-APP.1
WEB-APP.2
WEB-APP.3
NGINX:LATEST
NGINX:LATEST
NGINX:LATEST
SERVICE TASKS CONTAINERS
$ docker stack deploy <STACK>
DOCKER 1.12 INTRODUCTION - ROUTING MESH
ROUTING MESH
NGINX
SERVICE
NGINX
SERVICE
INGRESS
NETWORK
IPVS
1.1.1.1
IPVS
1.1.1.1
NGINX-
CONTAINER
1.1.1.3
NGINX-
CONTAINER
1.1.1.4
NGINX-
CONTAINER
1.1.1.5
NGINX-
CONTAINER
1.1.1.6
172.1.1.10172.1.2.10
port8080port8080EXTERNAL
LOAD
BALANCER
DOCKER 1.12 INTRODUCTION - HEALTH CHECKS
CONTAINER HEALTH CHECK
$ HEALTHCHECK --interval=5m —timeout=3s --retries 3 CMD curl
-f http://localhost/ || exit 1
▸ Checks every 5 minutes if the localhost web server returns the index page
within 3 seconds
▸ Container is considered unhealthy after 3 consecutive failures
DOCKER 1.12 INTRODUCTION - PLUGINS
PLUGINS
$ docker plugin install tiborvass/no-remove
$ docker plugin enable no-remove
$ docker plugin disable no-remove
$ docker plugin install tiborvass/no-remove
Plugin “tiborvass/no-remove:latest”
requested the following privileges:
- Networking: host
- Mounting host path: /data
Do you grant the above permissions? [y / N]
DOCKER 1.12 INTRODUCTION - SECURITY
SECURITY
▸ End-to-end encryption between managers and workers
▸ There is no “insecure”
▸ Automatic Encryption and mutual authentication (TLS)
▸ Certificate Rotation
▸ External CA Integration
Q & A
alex.vranceanu@accesa.eu
DOCKER 1.12 INTRODUCTION

More Related Content

PDF
Docker 1.12 and swarm mode
PDF
Docker Swarm 45-min Workshop (Mountain View Docker Meetup 2/24/2016)
PDF
Whitepaper MS SQL Server on Linux
PDF
New Docker Features for Orchestration and Containers
PDF
Designate Install and Operate Workshop
PDF
Open stack networking vlan, gre
PDF
Percona XtraDB 集群安装与配置
PDF
MySQL Galera 集群
Docker 1.12 and swarm mode
Docker Swarm 45-min Workshop (Mountain View Docker Meetup 2/24/2016)
Whitepaper MS SQL Server on Linux
New Docker Features for Orchestration and Containers
Designate Install and Operate Workshop
Open stack networking vlan, gre
Percona XtraDB 集群安装与配置
MySQL Galera 集群

What's hot (20)

PDF
Docker swarm introduction
PPTX
Docker Swarm for Beginner
PDF
Justin Corbin Portfolio Labs
PDF
KubeCon NA 2018 - NATS Deep Dive: The Evolution of NATS
PPTX
Docker Networking & Swarm Mode Introduction
PDF
Open Stack Cheat Sheet V1
PDF
Neutron Network Namespaces and IPtables--A Technical Deep Dive
PDF
Debugging Network Issues
PDF
OpenStack Cheat Sheet V2
PDF
Docker 1.12 & Swarm Mode [Montreal Docker Meetup Sept. 2016]
PDF
Swarm mode
PDF
2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps
PPTX
Load Balancing Apps in Docker Swarm with NGINX
PDF
Designate: An Overview
PDF
Clustering with Docker Swarm - Dockerops 2016 @ Cento (FE) Italy
PDF
OpenStack Korea 2015 상반기스터디(devops) 스크립트로 오픈스택 설치하기 20150728
PDF
Get your instance by name integration of nova, neutron and designate
PDF
The age of orchestration: from Docker basics to cluster management
PDF
SF Python Meetup - Introduction to NATS Messaging with Python3
PPTX
Introction to docker swarm
Docker swarm introduction
Docker Swarm for Beginner
Justin Corbin Portfolio Labs
KubeCon NA 2018 - NATS Deep Dive: The Evolution of NATS
Docker Networking & Swarm Mode Introduction
Open Stack Cheat Sheet V1
Neutron Network Namespaces and IPtables--A Technical Deep Dive
Debugging Network Issues
OpenStack Cheat Sheet V2
Docker 1.12 & Swarm Mode [Montreal Docker Meetup Sept. 2016]
Swarm mode
2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps
Load Balancing Apps in Docker Swarm with NGINX
Designate: An Overview
Clustering with Docker Swarm - Dockerops 2016 @ Cento (FE) Italy
OpenStack Korea 2015 상반기스터디(devops) 스크립트로 오픈스택 설치하기 20150728
Get your instance by name integration of nova, neutron and designate
The age of orchestration: from Docker basics to cluster management
SF Python Meetup - Introduction to NATS Messaging with Python3
Introction to docker swarm
Ad

Similar to Docker 1.12 Introduction (Docker Meetup Cluj-Napoca) (20)

PDF
JDO 2019: Container orchestration with Docker Swarm - Jakub Hajek
PDF
Deep Dive into Docker Swarm Mode
PDF
What's New in Docker 1.12 by Nishant Totla for Docker SF Meetup 08.03.16
PDF
What's New in Docker 1.12?
PDF
Drupal Development with Docker
PDF
Traefik 2.x features - canary deployment with Traefik and K3S
PDF
What's New in Docker 1.12 by Mike Goelzer and Andrea Luzzardi
PDF
What's New in Docker 1.12 (June 20, 2016) by Mike Goelzer & Andrea Luzzardi
PDF
Docker, the Future of DevOps
PDF
Docker swarm workshop
PDF
7 reasons to start using Docker
PPTX
Nats meetup oct 2016 docker 112
PDF
AWS와 Docker Swarm을 이용한 쉽고 빠른 컨테이너 오케스트레이션 - AWS Summit Seoul 2017
PDF
Docker 進階實務班
PDF
廣宣學堂: 容器進階實務 - Docker進深研究班
PDF
Containerizing Web Application with Docker
PDF
Keycloak on Docker.pdf
PDF
Docker Swarm 1.12 Overview and Demo
PDF
Docker, Kubernetes, and Google Cloud
PDF
What's New in Docker 1.13?
JDO 2019: Container orchestration with Docker Swarm - Jakub Hajek
Deep Dive into Docker Swarm Mode
What's New in Docker 1.12 by Nishant Totla for Docker SF Meetup 08.03.16
What's New in Docker 1.12?
Drupal Development with Docker
Traefik 2.x features - canary deployment with Traefik and K3S
What's New in Docker 1.12 by Mike Goelzer and Andrea Luzzardi
What's New in Docker 1.12 (June 20, 2016) by Mike Goelzer & Andrea Luzzardi
Docker, the Future of DevOps
Docker swarm workshop
7 reasons to start using Docker
Nats meetup oct 2016 docker 112
AWS와 Docker Swarm을 이용한 쉽고 빠른 컨테이너 오케스트레이션 - AWS Summit Seoul 2017
Docker 進階實務班
廣宣學堂: 容器進階實務 - Docker進深研究班
Containerizing Web Application with Docker
Keycloak on Docker.pdf
Docker Swarm 1.12 Overview and Demo
Docker, Kubernetes, and Google Cloud
What's New in Docker 1.13?
Ad

Recently uploaded (20)

PDF
WebRTC in SignalWire - troubleshooting media negotiation
PPTX
PptxGenJS_Demo_Chart_20250317130215833.pptx
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PDF
Testing WebRTC applications at scale.pdf
PPTX
Introduction to Information and Communication Technology
PPTX
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
PDF
SASE Traffic Flow - ZTNA Connector-1.pdf
PDF
The Internet -By the Numbers, Sri Lanka Edition
PPTX
Introuction about WHO-FIC in ICD-10.pptx
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
PDF
Cloud-Scale Log Monitoring _ Datadog.pdf
PPTX
QR Codes Qr codecodecodecodecocodedecodecode
PDF
An introduction to the IFRS (ISSB) Stndards.pdf
PDF
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
PDF
RPKI Status Update, presented by Makito Lay at IDNOG 10
PPTX
SAP Ariba Sourcing PPT for learning material
PPTX
artificial intelligence overview of it and more
PDF
Unit-1 introduction to cyber security discuss about how to secure a system
PPT
tcp ip networks nd ip layering assotred slides
WebRTC in SignalWire - troubleshooting media negotiation
PptxGenJS_Demo_Chart_20250317130215833.pptx
Job_Card_System_Styled_lorem_ipsum_.pptx
Testing WebRTC applications at scale.pdf
Introduction to Information and Communication Technology
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
SASE Traffic Flow - ZTNA Connector-1.pdf
The Internet -By the Numbers, Sri Lanka Edition
Introuction about WHO-FIC in ICD-10.pptx
The New Creative Director: How AI Tools for Social Media Content Creation Are...
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
Cloud-Scale Log Monitoring _ Datadog.pdf
QR Codes Qr codecodecodecodecocodedecodecode
An introduction to the IFRS (ISSB) Stndards.pdf
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
RPKI Status Update, presented by Makito Lay at IDNOG 10
SAP Ariba Sourcing PPT for learning material
artificial intelligence overview of it and more
Unit-1 introduction to cyber security discuss about how to secure a system
tcp ip networks nd ip layering assotred slides

Docker 1.12 Introduction (Docker Meetup Cluj-Napoca)

  • 2. DOCKER 1.12 INTRODUCTION WHAT’S NEW? ▸Docker Swarm Mode ▸Services ▸Distributed Application Bundles ▸Routing Mesh ▸Container Healthcheck ▸Plugins ▸Security out of the box
  • 3. DOCKER 1.12 INTRODUCTION - SWARM MODE SWARM MODE $ docker swarm init $ docker swarm join <IP-OF-MANAGER>:2377 M W M W W W
  • 4. DOCKER 1.12 INTRODUCTION - SERVICES SERVICES $ docker service create —name nginx —replicas 2 —network frontend nginx $ docker network create —driver overlay —subnet 10.0.100.0/24 frontend FRONTEND M W M W W W NGINX NGINX
  • 5. DOCKER 1.12 INTRODUCTION - SERVICES NODE FAILURE FRONTEND M W M W W NGINX NGINX W NGINX
  • 6. DOCKER 1.12 INTRODUCTION - SERVICES SERVICE SCALING FRONTEND M W M W W NGINX NGINX $ docker service scale nginx=4 NGINX NGINX
  • 7. DOCKER 1.12 INTRODUCTION - SERVICES GLOBAL SERVICES FRONTEND M W M W W NGINX NGINX $ docker service create —name agent —mode=global agent:latest NGINX NGINX AG AG AG AGAG
  • 8. DOCKER 1.12 INTRODUCTION - SERVICES SERVICE CONSTRAINTS FRONTEND M W M W W $ docker service create —name nginx —replicas 4 —network frontend —constraint com.example.storage=“ssd” nginx docker daemon —label com.example.storage=“ssd” NGINX NGINX NGINX NGINX
  • 9. DOCKER 1.12 INTRODUCTION - DAB SERVICES WEB-APP WEB-APP.1 WEB-APP.2 WEB-APP.3 NGINX:LATEST CONTAINER NGINX:LATEST CONTAINER NGINX:LATEST CONTAINER SERVICE TASKS CONTAINERS
  • 10. DOCKER 1.12 INTRODUCTION - DAB DISTRIBUTED APPLICATION BUNDLES WEB-APP WEB-APP.1 WEB-APP.2 WEB-APP.3 NGINX:LATEST NGINX:LATEST NGINX:LATEST SERVICE TASKS CONTAINERS STACK WEB-APP WEB-APP.1 WEB-APP.2 WEB-APP.3 NGINX:LATEST NGINX:LATEST NGINX:LATEST SERVICE TASKS CONTAINERS $ docker stack deploy <STACK>
  • 11. DOCKER 1.12 INTRODUCTION - ROUTING MESH ROUTING MESH NGINX SERVICE NGINX SERVICE INGRESS NETWORK IPVS 1.1.1.1 IPVS 1.1.1.1 NGINX- CONTAINER 1.1.1.3 NGINX- CONTAINER 1.1.1.4 NGINX- CONTAINER 1.1.1.5 NGINX- CONTAINER 1.1.1.6 172.1.1.10172.1.2.10 port8080port8080EXTERNAL LOAD BALANCER
  • 12. DOCKER 1.12 INTRODUCTION - HEALTH CHECKS CONTAINER HEALTH CHECK $ HEALTHCHECK --interval=5m —timeout=3s --retries 3 CMD curl -f http://localhost/ || exit 1 ▸ Checks every 5 minutes if the localhost web server returns the index page within 3 seconds ▸ Container is considered unhealthy after 3 consecutive failures
  • 13. DOCKER 1.12 INTRODUCTION - PLUGINS PLUGINS $ docker plugin install tiborvass/no-remove $ docker plugin enable no-remove $ docker plugin disable no-remove $ docker plugin install tiborvass/no-remove Plugin “tiborvass/no-remove:latest” requested the following privileges: - Networking: host - Mounting host path: /data Do you grant the above permissions? [y / N]
  • 14. DOCKER 1.12 INTRODUCTION - SECURITY SECURITY ▸ End-to-end encryption between managers and workers ▸ There is no “insecure” ▸ Automatic Encryption and mutual authentication (TLS) ▸ Certificate Rotation ▸ External CA Integration