SlideShare a Scribd company logo
Ladislav	
  Prskavec	
  @abtris	
  -­‐	
  	
  DEVEL	
  9.11.2013

1
Docker	
  is	
  an	
  open-­‐source	
  project	
  	
  
to	
  easily	
  create	
  lightweight,	
  portable,	
  self-­‐sufficient	
  containers	
  
from	
  any	
  applicaHon.	
  

2
The	
  same	
  container	
  that	
  a	
  developer	
  builds	
  and	
  tests	
  on	
  a	
  
laptop	
  can	
  run	
  at	
  scale,	
  in	
  producHon,	
  on	
  VMs,	
  bare	
  metal,	
  
OpenStack	
  clusters,	
  public	
  clouds	
  and	
  more.
3
4
BeNer	
  than	
  VMs
★ Size

5
BeNer	
  than	
  VMs
★ Size	
  
★ Performance

6
BeNer	
  than	
  VMs
★ Size	
  
★ Performance	
  
★ Portability

7
BeNer	
  than	
  VMs
★ Size	
  
★ Performance	
  
★ Portability	
  
★ Hardware-­‐centric

8
Escape	
  dependency	
  hell
★ Cross-­‐plaRorm	
  dependencies

9
Escape	
  dependency	
  hell
★ Cross-­‐plaRorm	
  dependencies	
  
★ ConflicHng	
  dependencies

10
Escape	
  dependency	
  hell
★ Cross-­‐plaRorm	
  dependencies	
  
★ ConflicHng	
  dependencies	
  
★ Custom	
  dependencies

11
Here's	
  a	
  typical	
  Docker	
  build	
  process	
  (Dockerfile)
from	
  ubuntu:12.10	
  
run	
  apt-­‐get	
  update	
  
run	
  DEBIAN_FRONTEND=noninteractive	
  apt-­‐get	
  install	
  -­‐q	
  -­‐y	
  python	
  
run	
  DEBIAN_FRONTEND=noninteractive	
  apt-­‐get	
  install	
  -­‐q	
  -­‐y	
  python-­‐pip	
  
run	
  pip	
  install	
  django	
  
run	
  DEBIAN_FRONTEND=noninteractive	
  apt-­‐get	
  install	
  -­‐q	
  -­‐y	
  curl	
  
run	
  curl	
  -­‐L	
  https://github.com/shykes/helloflask/master.tar.gz	
  |	
  tar	
  -­‐xzv	
  
run	
  cd	
  helloflask-­‐master	
  &&	
  pip	
  install	
  -­‐r	
  requirements.txt

12
Under	
  the	
  hood
★ GO	
  
★ The	
  cgroup	
  and	
  namespacing	
  capabiliHes	
  of	
  the	
  Linux	
  kernel

13
Under	
  the	
  hood
★ GO	
  
★ The	
  cgroup	
  and	
  namespacing	
  capabiliHes	
  of	
  the	
  Linux	
  kernel	
  
★ AUFS,	
  a	
  powerful	
  union	
  filesystem	
  with	
  copy-­‐on-­‐write	
  
capabiliHes

14
Under	
  the	
  hood
★ GO	
  
★ The	
  cgroup	
  and	
  namespacing	
  capabiliHes	
  of	
  the	
  Linux	
  kernel	
  
★ AUFS,	
  a	
  powerful	
  union	
  filesystem	
  with	
  copy-­‐on-­‐write	
  
capabiliHes	
  
★ lxc,	
  a	
  set	
  of	
  convenience	
  scripts	
  to	
  simplify	
  the	
  creaHon	
  of	
  
Linux	
  containers

15
Zero	
  downHme	
  deployment

using	
  private	
  registry
16
App	
  running	
  in	
  prod	
  hNp://praguejs.cz	
  
!
vagrant@precise64:~$	
  docker	
  ps	
  
!
CONTAINER	
  ID	
  	
  	
  	
  	
  	
  	
  	
  IMAGE	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  
!
b2332dffe	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  registry.abtris.cz:5000/praguejs:latest	
  
-­‐	
  Build	
  local	
  
>	
  docker	
  build	
  -­‐t=praguejs	
  .	
  
-­‐	
  Test	
  local	
  
>	
  docker	
  run	
  -­‐p	
  49200:3333	
  praguejs	
  
hNp://localhost:49200	
  
-­‐	
  Change	
  some	
  files	
  
-­‐	
  Rebuild	
  &	
  test	
  
>	
  docker	
  build	
  -­‐t	
  praguejs	
  
>	
  docker	
  run	
  -­‐p	
  49200:3333	
  praguejs
17
Push	
  to	
  producHon	
  
•

Tag	
  image	
  in	
  order	
  to	
  push	
  it

>	
  docker	
  tag	
  praguejs	
  registry.abtris.cz:5000/praguejs	
  

•

Push	
  image	
  to	
  local	
  registry

>	
  docker	
  push	
  registry.abtris.cz:5000/praguejs	
  

•

On	
  producHon	
  server,	
  pull	
  image

>	
  docker	
  pull	
  registry.abtris.cz:5000/praguejs	
  

•

Start	
  new	
  container	
  

>	
  docker	
  run	
  -­‐d	
  -­‐p	
  127.0.0.1::3333	
  <image>	
  

vagrant@precise64:~$	
  docker	
  ps	
  
• Change	
  configuraHon	
  at	
  nginx/haproxy	
  and	
  restart	
  
CONTAINER	
  ID	
  	
  	
  	
  	
  	
  	
  	
  IMAGE	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  
b2332dffe	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  registry.abtris.cz:5000/praguejs:latest	
  	
  
• See	
  changes	
  live
d45222331	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  1b4f43asds	
  
18
19
hNp://m.doporucim.cz/Docker
20

More Related Content

What's hot (20)

PPTX
CI-CD WITH GITLAB WORKFLOW
AddWeb Solution Pvt. Ltd.
 
PDF
From Arm to Z: Building, Shipping, and Running a Multi-platform Docker Swarm ...
Docker, Inc.
 
PPTX
Docker for Developers - Sunshine PHP
Chris Tankersley
 
PDF
What’s new in Docker 1.13
Will Kinard
 
PDF
Использование Docker в CI / Александр Акбашев (HERE Technologies)
Ontico
 
PDF
Docker compose
Felipe Ruhland
 
PDF
Democratizing Development - Scott Gress
Docker, Inc.
 
PDF
Monitoring Containers at New Relic by Sean Kane
Docker, Inc.
 
PDF
Docker 初探,實驗室中的運貨鯨
Ruoshi Ling
 
PDF
How to create your own hack environment
Sumedt Jitpukdebodin
 
PDF
Docker as development environment
Bruno de Lima e Silva
 
PDF
Docker Compose by Aanand Prasad
Docker, Inc.
 
PDF
runC: The little engine that could (run Docker containers) by Docker Captain ...
Docker, Inc.
 
PDF
當專案漸趕,當遷移也不再那麼難 (Ship Your Projects with Docker EcoSystem)
Ruoshi Ling
 
PPTX
Exploring Docker Security
Patrick Kleindienst
 
PPTX
Continuous Delivery With Selenium Grid And Docker
Barbara Gonzalez
 
PPTX
Docker - Demo on PHP Application deployment
Arun prasath
 
PDF
Deploying Docker (Provisioning /w Docker + Chef/Puppet) - DevopsDaysPGH
Erica Windisch
 
PDF
Docker Clustering - Batteries Included
C4Media
 
PPTX
From Docker to Production - SunshinePHP 2017
Chris Tankersley
 
CI-CD WITH GITLAB WORKFLOW
AddWeb Solution Pvt. Ltd.
 
From Arm to Z: Building, Shipping, and Running a Multi-platform Docker Swarm ...
Docker, Inc.
 
Docker for Developers - Sunshine PHP
Chris Tankersley
 
What’s new in Docker 1.13
Will Kinard
 
Использование Docker в CI / Александр Акбашев (HERE Technologies)
Ontico
 
Docker compose
Felipe Ruhland
 
Democratizing Development - Scott Gress
Docker, Inc.
 
Monitoring Containers at New Relic by Sean Kane
Docker, Inc.
 
Docker 初探,實驗室中的運貨鯨
Ruoshi Ling
 
How to create your own hack environment
Sumedt Jitpukdebodin
 
Docker as development environment
Bruno de Lima e Silva
 
Docker Compose by Aanand Prasad
Docker, Inc.
 
runC: The little engine that could (run Docker containers) by Docker Captain ...
Docker, Inc.
 
當專案漸趕,當遷移也不再那麼難 (Ship Your Projects with Docker EcoSystem)
Ruoshi Ling
 
Exploring Docker Security
Patrick Kleindienst
 
Continuous Delivery With Selenium Grid And Docker
Barbara Gonzalez
 
Docker - Demo on PHP Application deployment
Arun prasath
 
Deploying Docker (Provisioning /w Docker + Chef/Puppet) - DevopsDaysPGH
Erica Windisch
 
Docker Clustering - Batteries Included
C4Media
 
From Docker to Production - SunshinePHP 2017
Chris Tankersley
 

Viewers also liked (17)

PPTX
The evolution of body image *
as185067
 
PDF
How FreeeUp Works
Nathan Hirsch
 
PDF
How to prepare for class 12 board exams
Ednexa
 
PPTX
Leveraging social media for admins
Crystal Coleman
 
PPT
Cake Phpで簡単問い合わせフォームの作り方
柴田 篤志
 
PPSX
A mulher tarcísio costa
Luzia Gabriele
 
PDF
Getting Started With INBOUND Marketing
Digital AdDoctor
 
PPTX
Presentación Iriana Colina Seguridad industrial 2 semestre
albanyta
 
PPT
Introducción a la computacón
Cabrera Miguel
 
PPSX
áGuia azul gracilene pinto
Luzia Gabriele
 
PPTX
Mapa conceptual 26 de julio milena villamizar power point
celimer
 
PDF
testimonial
Chia Kok Leong
 
PPS
Evolucion De La Ead
Hector Bentui
 
DOCX
Peter LaBrash resume
Peter LaBrash
 
PPTX
Digimon leonardo zec & ivan đopar 7.d
silvijedevald
 
PDF
Artificial Intelligence 06.2 More on Causality Bayesian Networks
Andres Mendez-Vazquez
 
PDF
Dico du futur de l'amour
Les Propulseurs
 
The evolution of body image *
as185067
 
How FreeeUp Works
Nathan Hirsch
 
How to prepare for class 12 board exams
Ednexa
 
Leveraging social media for admins
Crystal Coleman
 
Cake Phpで簡単問い合わせフォームの作り方
柴田 篤志
 
A mulher tarcísio costa
Luzia Gabriele
 
Getting Started With INBOUND Marketing
Digital AdDoctor
 
Presentación Iriana Colina Seguridad industrial 2 semestre
albanyta
 
Introducción a la computacón
Cabrera Miguel
 
áGuia azul gracilene pinto
Luzia Gabriele
 
Mapa conceptual 26 de julio milena villamizar power point
celimer
 
testimonial
Chia Kok Leong
 
Evolucion De La Ead
Hector Bentui
 
Peter LaBrash resume
Peter LaBrash
 
Digimon leonardo zec & ivan đopar 7.d
silvijedevald
 
Artificial Intelligence 06.2 More on Causality Bayesian Networks
Andres Mendez-Vazquez
 
Dico du futur de l'amour
Les Propulseurs
 
Ad

Similar to Docker.io (20)

PDF
Faster and Easier Software Development using Docker Platform
msyukor
 
PPT
Docker 101, Alexander Ryabtsev
Tetiana Saputo
 
PDF
Introduction to Docker at Glidewell Laboratories in Orange County
Jérôme Petazzoni
 
PPTX
Dockerize the World - presentation from Hradec Kralove
damovsky
 
PDF
Docker 1 0 1 0 1: a Docker introduction, actualized for the stable release of...
Jérôme Petazzoni
 
PDF
Workshop : 45 minutes pour comprendre Docker avec Jérôme Petazzoni
TheFamily
 
PDF
Introduction to Docker, December 2014 "Tour de France" Edition
Jérôme Petazzoni
 
PDF
Django and Docker
Docker, Inc.
 
PDF
Docker at Djangocon 2013 | Talk by Ken Cochrane
dotCloud
 
PDF
Docker & FieldAware
Jakub Jarosz
 
PDF
codemotion-docker-2014
Carlo Bonamico
 
PDF
The Docker "Gauntlet" - Introduction, Ecosystem, Deployment, Orchestration
Erica Windisch
 
PDF
Why everyone is excited about Docker (and you should too...) - Carlo Bonamic...
Codemotion
 
PPTX
Docker In Brief
Ritu Kamthan
 
PDF
Docker+java
DPC Consulting Ltd
 
PDF
Docker
Abhishek Tomar
 
PDF
Agile Brown Bag - Vagrant & Docker: Introduction
Agile Partner S.A.
 
PDF
GDGSCL - Docker a jeho provoz v Heroku a AWS
Ladislav Prskavec
 
PPTX
Powercoders · Docker · Fall 2021.pptx
IgnacioTamayo2
 
PDF
Docker From Scratch
Giacomo Vacca
 
Faster and Easier Software Development using Docker Platform
msyukor
 
Docker 101, Alexander Ryabtsev
Tetiana Saputo
 
Introduction to Docker at Glidewell Laboratories in Orange County
Jérôme Petazzoni
 
Dockerize the World - presentation from Hradec Kralove
damovsky
 
Docker 1 0 1 0 1: a Docker introduction, actualized for the stable release of...
Jérôme Petazzoni
 
Workshop : 45 minutes pour comprendre Docker avec Jérôme Petazzoni
TheFamily
 
Introduction to Docker, December 2014 "Tour de France" Edition
Jérôme Petazzoni
 
Django and Docker
Docker, Inc.
 
Docker at Djangocon 2013 | Talk by Ken Cochrane
dotCloud
 
Docker & FieldAware
Jakub Jarosz
 
codemotion-docker-2014
Carlo Bonamico
 
The Docker "Gauntlet" - Introduction, Ecosystem, Deployment, Orchestration
Erica Windisch
 
Why everyone is excited about Docker (and you should too...) - Carlo Bonamic...
Codemotion
 
Docker In Brief
Ritu Kamthan
 
Docker+java
DPC Consulting Ltd
 
Agile Brown Bag - Vagrant & Docker: Introduction
Agile Partner S.A.
 
GDGSCL - Docker a jeho provoz v Heroku a AWS
Ladislav Prskavec
 
Powercoders · Docker · Fall 2021.pptx
IgnacioTamayo2
 
Docker From Scratch
Giacomo Vacca
 
Ad

More from Ladislav Prskavec (20)

PDF
SRE in Apiary
Ladislav Prskavec
 
PDF
Modern Web Architecture<br>based on JS, API and Markup
Ladislav Prskavec
 
PDF
How you can kill Wordpress!
Ladislav Prskavec
 
PDF
SRE in Startup
Ladislav Prskavec
 
PDF
CI and CD
Ladislav Prskavec
 
PDF
Datascript: Serverless Architetecture
Ladislav Prskavec
 
PDF
Serverless Architecture
Ladislav Prskavec
 
PDF
CI and CD
Ladislav Prskavec
 
PDF
PragueJS meetups 30th anniversary
Ladislav Prskavec
 
PDF
How to easy deploy app into any cloud
Ladislav Prskavec
 
PDF
Docker - modern platform for developement and operations
Ladislav Prskavec
 
PDF
AWS Elastic Container Service
Ladislav Prskavec
 
PDF
Comparison nodejs frameworks using Polls API
Ladislav Prskavec
 
PDF
Docker Elastic Beanstalk
Ladislav Prskavec
 
PDF
Docker včera, dnes a zítra
Ladislav Prskavec
 
PDF
Tessel is a microcontroller that runs JavaScript.
Ladislav Prskavec
 
PDF
Docker.io
Ladislav Prskavec
 
PDF
AngularJS
Ladislav Prskavec
 
PDF
Firebase and AngularJS
Ladislav Prskavec
 
PDF
AngularJS at PyVo
Ladislav Prskavec
 
SRE in Apiary
Ladislav Prskavec
 
Modern Web Architecture<br>based on JS, API and Markup
Ladislav Prskavec
 
How you can kill Wordpress!
Ladislav Prskavec
 
SRE in Startup
Ladislav Prskavec
 
Datascript: Serverless Architetecture
Ladislav Prskavec
 
Serverless Architecture
Ladislav Prskavec
 
PragueJS meetups 30th anniversary
Ladislav Prskavec
 
How to easy deploy app into any cloud
Ladislav Prskavec
 
Docker - modern platform for developement and operations
Ladislav Prskavec
 
AWS Elastic Container Service
Ladislav Prskavec
 
Comparison nodejs frameworks using Polls API
Ladislav Prskavec
 
Docker Elastic Beanstalk
Ladislav Prskavec
 
Docker včera, dnes a zítra
Ladislav Prskavec
 
Tessel is a microcontroller that runs JavaScript.
Ladislav Prskavec
 
Firebase and AngularJS
Ladislav Prskavec
 
AngularJS at PyVo
Ladislav Prskavec
 

Recently uploaded (20)

PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PPTX
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
PDF
Build with AI and GDG Cloud Bydgoszcz- ADK .pdf
jaroslawgajewski1
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
Market Wrap for 18th July 2025 by CIFDAQ
CIFDAQ
 
PPTX
PCU Keynote at IEEE World Congress on Services 250710.pptx
Ramesh Jain
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PDF
Integrating IIoT with SCADA in Oil & Gas A Technical Perspective.pdf
Rejig Digital
 
PDF
How Current Advanced Cyber Threats Transform Business Operation
Eryk Budi Pratama
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PDF
Per Axbom: The spectacular lies of maps
Nexer Digital
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PDF
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
PDF
Basics of Electronics for IOT(actuators ,microcontroller etc..)
arnavmanesh
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
Build with AI and GDG Cloud Bydgoszcz- ADK .pdf
jaroslawgajewski1
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
Market Wrap for 18th July 2025 by CIFDAQ
CIFDAQ
 
PCU Keynote at IEEE World Congress on Services 250710.pptx
Ramesh Jain
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
Integrating IIoT with SCADA in Oil & Gas A Technical Perspective.pdf
Rejig Digital
 
How Current Advanced Cyber Threats Transform Business Operation
Eryk Budi Pratama
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
Per Axbom: The spectacular lies of maps
Nexer Digital
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
Basics of Electronics for IOT(actuators ,microcontroller etc..)
arnavmanesh
 

Docker.io

  • 1. Ladislav  Prskavec  @abtris  -­‐    DEVEL  9.11.2013 1
  • 2. Docker  is  an  open-­‐source  project     to  easily  create  lightweight,  portable,  self-­‐sufficient  containers   from  any  applicaHon.   2
  • 3. The  same  container  that  a  developer  builds  and  tests  on  a   laptop  can  run  at  scale,  in  producHon,  on  VMs,  bare  metal,   OpenStack  clusters,  public  clouds  and  more. 3
  • 4. 4
  • 6. BeNer  than  VMs ★ Size   ★ Performance 6
  • 7. BeNer  than  VMs ★ Size   ★ Performance   ★ Portability 7
  • 8. BeNer  than  VMs ★ Size   ★ Performance   ★ Portability   ★ Hardware-­‐centric 8
  • 9. Escape  dependency  hell ★ Cross-­‐plaRorm  dependencies 9
  • 10. Escape  dependency  hell ★ Cross-­‐plaRorm  dependencies   ★ ConflicHng  dependencies 10
  • 11. Escape  dependency  hell ★ Cross-­‐plaRorm  dependencies   ★ ConflicHng  dependencies   ★ Custom  dependencies 11
  • 12. Here's  a  typical  Docker  build  process  (Dockerfile) from  ubuntu:12.10   run  apt-­‐get  update   run  DEBIAN_FRONTEND=noninteractive  apt-­‐get  install  -­‐q  -­‐y  python   run  DEBIAN_FRONTEND=noninteractive  apt-­‐get  install  -­‐q  -­‐y  python-­‐pip   run  pip  install  django   run  DEBIAN_FRONTEND=noninteractive  apt-­‐get  install  -­‐q  -­‐y  curl   run  curl  -­‐L  https://github.com/shykes/helloflask/master.tar.gz  |  tar  -­‐xzv   run  cd  helloflask-­‐master  &&  pip  install  -­‐r  requirements.txt 12
  • 13. Under  the  hood ★ GO   ★ The  cgroup  and  namespacing  capabiliHes  of  the  Linux  kernel 13
  • 14. Under  the  hood ★ GO   ★ The  cgroup  and  namespacing  capabiliHes  of  the  Linux  kernel   ★ AUFS,  a  powerful  union  filesystem  with  copy-­‐on-­‐write   capabiliHes 14
  • 15. Under  the  hood ★ GO   ★ The  cgroup  and  namespacing  capabiliHes  of  the  Linux  kernel   ★ AUFS,  a  powerful  union  filesystem  with  copy-­‐on-­‐write   capabiliHes   ★ lxc,  a  set  of  convenience  scripts  to  simplify  the  creaHon  of   Linux  containers 15
  • 16. Zero  downHme  deployment using  private  registry 16
  • 17. App  running  in  prod  hNp://praguejs.cz   ! vagrant@precise64:~$  docker  ps   ! CONTAINER  ID                IMAGE                                                                         ! b2332dffe                      registry.abtris.cz:5000/praguejs:latest   -­‐  Build  local   >  docker  build  -­‐t=praguejs  .   -­‐  Test  local   >  docker  run  -­‐p  49200:3333  praguejs   hNp://localhost:49200   -­‐  Change  some  files   -­‐  Rebuild  &  test   >  docker  build  -­‐t  praguejs   >  docker  run  -­‐p  49200:3333  praguejs 17
  • 18. Push  to  producHon   • Tag  image  in  order  to  push  it
 >  docker  tag  praguejs  registry.abtris.cz:5000/praguejs   • Push  image  to  local  registry
 >  docker  push  registry.abtris.cz:5000/praguejs   • On  producHon  server,  pull  image
 >  docker  pull  registry.abtris.cz:5000/praguejs   • Start  new  container  
 >  docker  run  -­‐d  -­‐p  127.0.0.1::3333  <image>   vagrant@precise64:~$  docker  ps   • Change  configuraHon  at  nginx/haproxy  and  restart   CONTAINER  ID                IMAGE                                                                         b2332dffe                      registry.abtris.cz:5000/praguejs:latest     • See  changes  live d45222331                      1b4f43asds   18
  • 19. 19