SlideShare a Scribd company logo
getting it running
and the initial
“aha Erlebniss"
@ndemoor
Hi! I’m Nils De Moor
CTO/cofounder at WooRank
Docker Belgium MUG
AWS Belgium MUG
That’s me!
A tale of many hats
Getting up and running with Docker
Getting up and running with Docker
Getting up and running with Docker
Getting up and running with Docker
Getting up and running with Docker
version drift
Dev Test Prod
PHP 5.5 5.4 5.3
Node 0.12.8 0.10.32 0.10.28
MySQL 5.6 5.5 5.5
<insert new hipster
language> 0.1.17-RC1 0.1 ?
Virtual
Machines
Getting up and running with Docker
Getting up and running with Docker
Prod
Test
Dev 1
Getting up and running with Docker
Simple
Isolated
Portable
Automated
Flexible
Versioned
Getting up and running with Docker
Getting up and running with Docker
“Ship anything... anywhere”
Dev Test Prod
PHP 5.5 5.4 5.3
Node 0.12.8 0.10.32 0.10.28
MySQL 5.6 5.5 5.5
<insert new hipster
language> 0.1.17-RC1 0.1 ?
Dev Test Prod
PHP
Node
MySQL
<insert new hipster
language>
Docker
Registry
Docker
Image
Getting up and running with Docker
Getting up and running with Docker
$docker run ubuntu echo “Hello World”
# Dockerfile
FROM ubuntu:14.04
ENV DEBIAN_FRONTEND noninteractive
# bring apt up-to-date and install memcached
RUN apt-get update -y 
&& apt-get install -y memcached
# run as user daemon (memcached doesn't allow to run as root)
USER daemon
# expose port to other containers
EXPOSE 11211
# Launch memcached when launching the container
ENTRYPOINT ["memcached"]
$docker build -t ndemoor/memcache .
$docker run 
-d —-name mc 
ndemoor/memcache
$docker logs mc
$docker stop mc
$docker push ndemoor/memcache
# Dockerfile
FROM node:0.10.38
# Define app root dir
WORKDIR /var/www
# Add package file to root dir
ADD ./package.json /var/www
RUN npm install --production
# Add our application code
ADD . /var/www
# Create mount point for application data
VOLUME /var/data
# Launch application
CMD [“npm”, “start”]
$docker build -t ndemoor/my-node-app .
$docker run 
-d -p 3000:3000 —-name app 
-v /data/node-app:/var/data:rw 
ndemoor/my-node-app
$docker push ndemoor/my-node-app
containers:
web:
build: .
command: npm start —-dev
ports:
- "3000:3000"
volumes:
- .:/var/www
- /data/node-app:/var/data
links:
- mc
environment:
- PORT=3000
- MY_ENV=dev
mc:
image: ndemoor/memcache
Docker Compose
$docker-compose up
$docker-compose run app migration.sh
$machine create -d virtualbox dev
$machine ls
$machine create -d digitalocean
--digitalocean-access-token=... staging
$machine create -d aws ...
Docker Machine
Getting up and running with Docker
Getting up and running with Docker
Getting up and running with Docker
$swarm create 6856663cdefdec325839a4b7e1de38e8
# start the swarm agent on each node
$swarm join
--discovery token://<cluster_id>
--addr=<node_ip:2375>
# start the manager on any machine
$swarm manage
--discovery token://<cluster_id>
-H tcp://<swarm_ip:swarm_port>
Docker Swarm
Getting up and running with Docker
Getting up and running with Docker
Getting up and running with Docker
http://www.meetup.com/Docker-Belgium
Thank
You!
@ndemoor
Photo Credit
http://static2.theguideistanbul.com/media/content_files/images/01/50/48/b_15048.jpeg
http://2eof2j3oc7is20vt9q3g7tlo5xe.wpengine.netdna-cdn.com/wp-content/uploads/2014/05/virtual-machine-
logo-370x261.jpg
http://upload.wikimedia.org/wikipedia/commons/6/6f/
Juggling_Clubs_Manuel_and_Christoph_Mitasch_11_club_passing.jpg
http://www.docker.com

More Related Content

What's hot (20)

PDF
Web Applications with Eclipse RT and Docker in the Cloud
Markus Knauer
 
PDF
Continuous delivery with jenkins, docker and exoscale
Julia Mateo
 
PDF
GDGSCL - Docker a jeho provoz v Heroku a AWS
Ladislav Prskavec
 
PPTX
ContainerSched 2017: Why Containers Will Take Over the World
Elton Stoneman
 
PPTX
Docker on Windows - 101 to Production (half-day workshop)
Elton Stoneman
 
PDF
Intro 2 docker
HanoiJUG
 
PPTX
DockerCon EU 2017 - Docker on Windows workshop
Elton Stoneman
 
PDF
Docker
Knoldus Inc.
 
PDF
Puppet Camp LA 2015: Server Management with Puppet on AWS for a fast-growing ...
Puppet
 
PDF
Orchestrating Docker - Making the Whale Dance
James Turnbull
 
PDF
Lopug docker end_of_distro
Chris Swan
 
PDF
Fig for Local Development
James Turnbull
 
PDF
Local development with ddev and TYPO3
Jan Helke
 
PDF
Simplestack
Willian Molinari
 
PDF
DevOps: Using Vagrant to Enhance Your Day to Day Development
Rob Reynolds
 
PDF
Node Web Development 2nd Edition: Chapter2 Setup Node and NPM
Rick Chang
 
PDF
Introduction to telepresence
Kyohei Mizumoto
 
PPTX
Infrastructure development on windows ldn cd meetup
Owain Perry
 
PDF
How to write a Dockerfile
Knoldus Inc.
 
PDF
Advanced microservices with .Net
Don Schenck
 
Web Applications with Eclipse RT and Docker in the Cloud
Markus Knauer
 
Continuous delivery with jenkins, docker and exoscale
Julia Mateo
 
GDGSCL - Docker a jeho provoz v Heroku a AWS
Ladislav Prskavec
 
ContainerSched 2017: Why Containers Will Take Over the World
Elton Stoneman
 
Docker on Windows - 101 to Production (half-day workshop)
Elton Stoneman
 
Intro 2 docker
HanoiJUG
 
DockerCon EU 2017 - Docker on Windows workshop
Elton Stoneman
 
Docker
Knoldus Inc.
 
Puppet Camp LA 2015: Server Management with Puppet on AWS for a fast-growing ...
Puppet
 
Orchestrating Docker - Making the Whale Dance
James Turnbull
 
Lopug docker end_of_distro
Chris Swan
 
Fig for Local Development
James Turnbull
 
Local development with ddev and TYPO3
Jan Helke
 
Simplestack
Willian Molinari
 
DevOps: Using Vagrant to Enhance Your Day to Day Development
Rob Reynolds
 
Node Web Development 2nd Edition: Chapter2 Setup Node and NPM
Rick Chang
 
Introduction to telepresence
Kyohei Mizumoto
 
Infrastructure development on windows ldn cd meetup
Owain Perry
 
How to write a Dockerfile
Knoldus Inc.
 
Advanced microservices with .Net
Don Schenck
 

Similar to Getting up and running with Docker (20)

PDF
Présentation de Docker
Proto204
 
PPTX
Docker - Demo on PHP Application deployment
Arun prasath
 
PPTX
DevOps: Docker Workshop
Joonas Hämäläinen
 
PDF
Docker for developers
sparkfabrik
 
PDF
Docker for developers
DrupalDay
 
PPSX
Docker and containers - Presentation Slides by Priyadarshini Anand
PRIYADARSHINI ANAND
 
PDF
Docker
Brian Hogan
 
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
Dockerize your Symfony application - Symfony Live NYC 2014
André Rømcke
 
PDF
Introduction to Docker and Linux Containers @ Cloud Computing Rhein Main
Puja Abbassi
 
PPTX
Start your adventure with docker
Sagar Dash
 
ODP
Introduction to Docker for NodeJs developers at Node DC 2/26/2014
lenworthhenry
 
PDF
Docker, but what it is?
Julien Maitrehenry
 
PDF
Docker presentation | Paris Docker Meetup
dotCloud
 
PDF
Victor Vieux at Docker Paris Meetup #1
Docker, Inc.
 
PDF
codemotion-docker-2014
Carlo Bonamico
 
PPTX
Beginners Guide to Kontena
Lauri Nevala
 
PPTX
Beginners Guide To Kontena
Kontena, Inc.
 
PPTX
Novices guide to docker
Alec Clews
 
Présentation de Docker
Proto204
 
Docker - Demo on PHP Application deployment
Arun prasath
 
DevOps: Docker Workshop
Joonas Hämäläinen
 
Docker for developers
sparkfabrik
 
Docker for developers
DrupalDay
 
Docker and containers - Presentation Slides by Priyadarshini Anand
PRIYADARSHINI ANAND
 
Docker
Brian Hogan
 
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
 
Dockerize your Symfony application - Symfony Live NYC 2014
André Rømcke
 
Introduction to Docker and Linux Containers @ Cloud Computing Rhein Main
Puja Abbassi
 
Start your adventure with docker
Sagar Dash
 
Introduction to Docker for NodeJs developers at Node DC 2/26/2014
lenworthhenry
 
Docker, but what it is?
Julien Maitrehenry
 
Docker presentation | Paris Docker Meetup
dotCloud
 
Victor Vieux at Docker Paris Meetup #1
Docker, Inc.
 
codemotion-docker-2014
Carlo Bonamico
 
Beginners Guide to Kontena
Lauri Nevala
 
Beginners Guide To Kontena
Kontena, Inc.
 
Novices guide to docker
Alec Clews
 
Ad

Recently uploaded (20)

PPTX
fatigue in aircraft structures-221113192308-0ad6dc8c.pptx
aviatecofficial
 
PPTX
Introduction to Internal Combustion Engines - Types, Working and Camparison.pptx
UtkarshPatil98
 
PPTX
Final Major project a b c d e f g h i j k l m
bharathpsnab
 
PPTX
What is Shot Peening | Shot Peening is a Surface Treatment Process
Vibra Finish
 
PDF
MODULE-5 notes [BCG402-CG&V] PART-B.pdf
Alvas Institute of Engineering and technology, Moodabidri
 
PPTX
DATA BASE MANAGEMENT AND RELATIONAL DATA
gomathisankariv2
 
PDF
Design Thinking basics for Engineers.pdf
CMR University
 
PDF
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
PDF
aAn_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
PPTX
Biosensors, BioDevices, Biomediccal.pptx
AsimovRiyaz
 
PPTX
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
PDF
3rd International Conference on Machine Learning and IoT (MLIoT 2025)
ClaraZara1
 
PDF
AN EMPIRICAL STUDY ON THE USAGE OF SOCIAL MEDIA IN GERMAN B2C-ONLINE STORES
ijait
 
PDF
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
PPT
Testing and final inspection of a solar PV system
MuhammadSanni2
 
PDF
REINFORCEMENT LEARNING IN DECISION MAKING SEMINAR REPORT
anushaashraf20
 
PPTX
Distribution reservoir and service storage pptx
dhanashree78
 
PPTX
MODULE 05 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
PDF
Electrical Machines and Their Protection.pdf
Nabajyoti Banik
 
PDF
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
fatigue in aircraft structures-221113192308-0ad6dc8c.pptx
aviatecofficial
 
Introduction to Internal Combustion Engines - Types, Working and Camparison.pptx
UtkarshPatil98
 
Final Major project a b c d e f g h i j k l m
bharathpsnab
 
What is Shot Peening | Shot Peening is a Surface Treatment Process
Vibra Finish
 
MODULE-5 notes [BCG402-CG&V] PART-B.pdf
Alvas Institute of Engineering and technology, Moodabidri
 
DATA BASE MANAGEMENT AND RELATIONAL DATA
gomathisankariv2
 
Design Thinking basics for Engineers.pdf
CMR University
 
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
aAn_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
Biosensors, BioDevices, Biomediccal.pptx
AsimovRiyaz
 
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
3rd International Conference on Machine Learning and IoT (MLIoT 2025)
ClaraZara1
 
AN EMPIRICAL STUDY ON THE USAGE OF SOCIAL MEDIA IN GERMAN B2C-ONLINE STORES
ijait
 
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
Testing and final inspection of a solar PV system
MuhammadSanni2
 
REINFORCEMENT LEARNING IN DECISION MAKING SEMINAR REPORT
anushaashraf20
 
Distribution reservoir and service storage pptx
dhanashree78
 
MODULE 05 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
Electrical Machines and Their Protection.pdf
Nabajyoti Banik
 
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
Ad

Getting up and running with Docker