SlideShare a Scribd company logo
@
Dockerfile Basics
Docker workshop #2 at @Twitter, beginners class
#dockerworkshop
Docker version 0.6.5

By Julien Barbier

@julienbarbier42
42h

Dockerfiles
• Dockerfiles = image representations
• Simple syntax for building images
• Automate and script the images creation
42h

FROM
• Sets the base image for subsequent instructions
• Usage: FROM <image>
• Example: FROM ubuntu
• Needs to be the first instruction of every Dockerfile

• TIP: find images with the command: docker search
42h

RUN
• Executes any commands on the current image and commit the
results
• Usage: RUN <command>
• Example: RUN apt-get install –y memcached
FROM ubuntu
RUN apt-get install -y memcached
is equivalent to:
$ docker run ubuntu apt-get install -y memcached
$ docker commit XXX
42h

docker build
Creates an image from a Dockerfile
• From the current directory
• From stdin
• From GitHub

$ docker build .

$ docker build - < Dockerfile
$ docker build github.com/creack/docker-firefox

TIP: Use –t to tag your image
42h

Example: Memcached
FROM ubuntu
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main
universe" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y memcached

• Dockerfile: https://github.com/jbarbier/Dockerfile-Basics-Docker-Workshop-2-Twitter/blob/master/slide_6/Dockerfile
$ docker build –t memcached_d1 .
• Test it
$ docker run -i -t memcached_d1 /bin/bash
root@1f452c9442fb:/# memcached -u daemon -vvv
42h

#Commenting
• #
• Dockerfile: https://github.com/jbarbier/Dockerfile-Basics-Docker-Workshop-2-Twitter/blob/master/slide_7/Dockerfile

# Memcached
#
# VERSION 1.0
# use the ubuntu base image provided by Docker
FROM ubuntu
# make sure the package repository is up to date
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
# install memcached
RUN apt-get install -y memcached
42h

MAINTAINER
• specify name / contact of the person maintaining the Dockerfile
• Example: MAINTAINER Julien, julien@docker.com
• Dockerfile: https://github.com/jbarbier/Dockerfile-Basics-Docker-Workshop-2-Twitter/blob/master/slide_8/Dockerfile
# Memcached
#
# VERSION

1.0

# use the ubuntu base image provided by Docker

FROM ubuntu
MAINTAINER Julien, julien@docker.com
# make sure the package repository is up to date
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
# install memcached
RUN apt-get install -y memcached
42h

ENTRYPOINT 1/2
• Triggers a command as soon as the container starts
• Example: ENTRYPOINT echo “Whale You Be My Container?”
• Dockerfile: https://github.com/jbarbier/Dockerfile-Basics-Docker-Workshop-2-Twitter/blob/master/slide_9/Dockerfile
# Whale you be my container?
#
# VERSION
0.42
# use the base image provided by Docker
FROM base
MAINTAINER Moby Dock victor.coisne@docker.com
# say hello when the container is launched
ENTRYPOINT echo "Whale you be my container"
42h

ENTRYPOINT 2/2
• Run containers as executables! :)
$ cat /etc/passwd | docker run -i wc

• Dockerfile: https://github.com/jbarbier/Dockerfile-Basics-Docker-Workshop-2-Twitter/blob/master/slide_10/Dockerfile
# This is wc
#
# VERSION 0.42
# use the base image provided by Docker
FROM base
MAINTAINER Roberto roberto@docker.com
# count lines with wc
ENTRYPOINT ["wc", "-l"]
42h

USER
• Sets the username to use when running the image
• Example: USER daemon
42h

EXPOSE
• Sets ports to be exposed to other containers when running the
image (cf lightning talk by Michael Crosby @crosbymichael)
• Example: EXPOSE 80
Exercice: create a perfect Memcached
Dockerfile
Answer https://github.com/jbarbier/Dockerfile-Basics-Docker-Workshop-2-Twitter/blob/master/memcached/Dockerfile
$ docker build -t memcached .
$ docker run –p 11211 memcached
#BOOM
• Try it (update port number, $ docker ps)
Python https://github.com/jbarbier/Dockerfile-Basics-Docker-Workshop-2-Twitter/blob/master/memcached/test.py
Ruby https://github.com/jbarbier/Dockerfile-Basics-Docker-Workshop-2-Twitter/blob/master/memcached/test.rb
PHP https://github.com/jbarbier/Dockerfile-Basics-Docker-Workshop-2-Twitter/blob/master/memcached/test.php

42h
42h

Quizz: Online Dockerfile Tutorials
Test your skills here:

http://www.docker.io/learn/dockerfile/
42h

Thank you!

www.docker.io

More Related Content

What's hot (17)

PPTX
Docker workshop
Evans Ye
 
PPTX
Austin - Container Days - Docker 101
Bill Maxwell
 
PDF
Docker by Example - Basics
Ganesh Samarthyam
 
PDF
Docker Presentation at the OpenStack Austin Meetup | 2013-09-12
dotCloud
 
PDF
Docker Continuous Delivery Workshop
Jirayut Nimsaeng
 
PDF
Dockerizing your applications - Docker workshop @Twitter
dotCloud
 
PDF
OpenStack - Docker - Rackspace HQ
dotCloud
 
PDF
Vagrant and docker
DuckDuckGo
 
PDF
Shipping Applications to Production in Containers with Docker
Jérôme Petazzoni
 
PDF
Vagrant + Docker provider [+Puppet]
Nicolas Poggi
 
PPTX
Docker Introductory workshop
Runcy Oommen
 
PDF
Locally it worked! virtualizing docker
Sascha Brinkmann
 
PDF
Automating Docker Containers with Puppet 2014 10-13
kylog
 
PPTX
Learn docker in 90 minutes
Larry Cai
 
PPT
Amazon Web Services and Docker
Paolo latella
 
PPTX
Docker Basic Presentation
Aman Chhabra
 
PDF
Docker by Example - Quiz
CodeOps Technologies LLP
 
Docker workshop
Evans Ye
 
Austin - Container Days - Docker 101
Bill Maxwell
 
Docker by Example - Basics
Ganesh Samarthyam
 
Docker Presentation at the OpenStack Austin Meetup | 2013-09-12
dotCloud
 
Docker Continuous Delivery Workshop
Jirayut Nimsaeng
 
Dockerizing your applications - Docker workshop @Twitter
dotCloud
 
OpenStack - Docker - Rackspace HQ
dotCloud
 
Vagrant and docker
DuckDuckGo
 
Shipping Applications to Production in Containers with Docker
Jérôme Petazzoni
 
Vagrant + Docker provider [+Puppet]
Nicolas Poggi
 
Docker Introductory workshop
Runcy Oommen
 
Locally it worked! virtualizing docker
Sascha Brinkmann
 
Automating Docker Containers with Puppet 2014 10-13
kylog
 
Learn docker in 90 minutes
Larry Cai
 
Amazon Web Services and Docker
Paolo latella
 
Docker Basic Presentation
Aman Chhabra
 
Docker by Example - Quiz
CodeOps Technologies LLP
 

Viewers also liked (20)

PPTX
Docker and Sitecore : Sci-Fi or match made in heaven?
Saber Karmous
 
PDF
Build Features, Not Apps
Natasha Murashev
 
PDF
Docker - Automatisches Deployment für Linux-Instanzen
B1 Systems GmbH
 
PDF
Docker use dockerfile
cawamata
 
PPTX
Vagrant, Puppet, Docker für Entwickler und Architekten
OPITZ CONSULTING Deutschland
 
ODP
Docker, how to use it. Organize a meeting with IBM products
Andrea Fontana
 
PDF
Talk on PHP Day Uruguay about Docker
Wellington Silva
 
PDF
Docker compose selenium-grid_tottoruby_25
Masayuki Hokimoto
 
PDF
Docker - Containervirtualisierung leichtgemacht
B1 Systems GmbH
 
PDF
Docker from basics to orchestration (PHPConfBr2015)
Wellington Silva
 
PDF
docker installation and basics
Walid Ashraf
 
PDF
Docker Basics
Eueung Mulyana
 
PPTX
Docker Basics
DuckDuckGo
 
PPT
Red Hat Certified engineer course
Ali Abdo
 
PDF
The Dockerfile Explosion and the Need for Higher Level Tools by Gareth Rushgrove
Docker, Inc.
 
PPT
component based softwrae engineering Cbse
Sravs Dals
 
PPTX
Docker for Developers - PNWPHP 2016 Workshop
Chris Tankersley
 
PPTX
Introduction To Git Workshop
themystic_ca
 
PDF
Docker & PHP - Practical use case
rjsmelo
 
PDF
Especialidade de inclusão 5
GRUPO ESCOTEIRO JOÃO OSCALINO
 
Docker and Sitecore : Sci-Fi or match made in heaven?
Saber Karmous
 
Build Features, Not Apps
Natasha Murashev
 
Docker - Automatisches Deployment für Linux-Instanzen
B1 Systems GmbH
 
Docker use dockerfile
cawamata
 
Vagrant, Puppet, Docker für Entwickler und Architekten
OPITZ CONSULTING Deutschland
 
Docker, how to use it. Organize a meeting with IBM products
Andrea Fontana
 
Talk on PHP Day Uruguay about Docker
Wellington Silva
 
Docker compose selenium-grid_tottoruby_25
Masayuki Hokimoto
 
Docker - Containervirtualisierung leichtgemacht
B1 Systems GmbH
 
Docker from basics to orchestration (PHPConfBr2015)
Wellington Silva
 
docker installation and basics
Walid Ashraf
 
Docker Basics
Eueung Mulyana
 
Docker Basics
DuckDuckGo
 
Red Hat Certified engineer course
Ali Abdo
 
The Dockerfile Explosion and the Need for Higher Level Tools by Gareth Rushgrove
Docker, Inc.
 
component based softwrae engineering Cbse
Sravs Dals
 
Docker for Developers - PNWPHP 2016 Workshop
Chris Tankersley
 
Introduction To Git Workshop
themystic_ca
 
Docker & PHP - Practical use case
rjsmelo
 
Especialidade de inclusão 5
GRUPO ESCOTEIRO JOÃO OSCALINO
 
Ad

Similar to Dockerfile Basics | Docker workshop #2 at twitter, 2013-11-05 (20)

PPTX
Dockerfile at Guidewire
Docker, Inc.
 
PPTX
Docker, LinuX Container
Araf Karsh Hamid
 
PDF
Running the Oracle SOA Suite Environment in a Docker Container
Guido Schmutz
 
PDF
Docker introduction
cawamata
 
PDF
Introduction to Docker
Kuan Yen Heng
 
PDF
Docker at Djangocon 2013 | Talk by Ken Cochrane
dotCloud
 
PDF
Django and Docker
Docker, Inc.
 
PPTX
Containers #101 : Docker ONBUILD triggers and Introduction to Docker Compose
Raziel Tabib (Join our team)
 
PDF
Introduction To Docker
Hamilton Turner
 
PDF
dockerizing web application
Walid Ashraf
 
PPTX
DockerSADASDASDA SADASDASDASDASDASDLabs.pptx
MuhamedAhmed35
 
PPTX
Docker
Dhananjay Kumar
 
PPTX
Hooking Docker With Selenium
Sujith Vakathanam
 
PDF
Docker on azure
Anuraj P
 
PDF
Victor Vieux at Docker Paris Meetup #1
Docker, Inc.
 
PDF
Docker presentation | Paris Docker Meetup
dotCloud
 
PDF
Docker in Action
Alper Kanat
 
PDF
A Hands-on Introduction to Docker
CodeOps Technologies LLP
 
PPTX
docker technology in INTERNET WORLD.pptx
poojadhanrajani
 
PPTX
Virtualization, Containers, Docker and scalable container management services
abhishek chawla
 
Dockerfile at Guidewire
Docker, Inc.
 
Docker, LinuX Container
Araf Karsh Hamid
 
Running the Oracle SOA Suite Environment in a Docker Container
Guido Schmutz
 
Docker introduction
cawamata
 
Introduction to Docker
Kuan Yen Heng
 
Docker at Djangocon 2013 | Talk by Ken Cochrane
dotCloud
 
Django and Docker
Docker, Inc.
 
Containers #101 : Docker ONBUILD triggers and Introduction to Docker Compose
Raziel Tabib (Join our team)
 
Introduction To Docker
Hamilton Turner
 
dockerizing web application
Walid Ashraf
 
DockerSADASDASDA SADASDASDASDASDASDLabs.pptx
MuhamedAhmed35
 
Hooking Docker With Selenium
Sujith Vakathanam
 
Docker on azure
Anuraj P
 
Victor Vieux at Docker Paris Meetup #1
Docker, Inc.
 
Docker presentation | Paris Docker Meetup
dotCloud
 
Docker in Action
Alper Kanat
 
A Hands-on Introduction to Docker
CodeOps Technologies LLP
 
docker technology in INTERNET WORLD.pptx
poojadhanrajani
 
Virtualization, Containers, Docker and scalable container management services
abhishek chawla
 
Ad

More from dotCloud (20)

PPTX
Immutable infrastructure with Docker and EC2
dotCloud
 
PDF
Docker at Spotify - Dockercon14
dotCloud
 
PPTX
John Engates Keynote at Dockercon 14
dotCloud
 
PDF
Building a smarter application Stack by Tomas Doran from Yelp
dotCloud
 
PPTX
DockerCon Keynote Ben Golub
dotCloud
 
PDF
Are VM Passé?
dotCloud
 
PDF
Docker in pratice -chenyifei
dotCloud
 
PDF
Wot2013云计算架构师峰会 -陈轶飞2
dotCloud
 
PPTX
Docker introduction
dotCloud
 
PDF
Deploying containers and managing them on multiple Docker hosts, Docker Meetu...
dotCloud
 
PDF
Introduction to Docker and all things containers, Docker Meetup at RelateIQ
dotCloud
 
PPTX
Dockerizing stashboard - Docker meetup at Twilio
dotCloud
 
PPTX
Write Once and REALLY Run Anywhere | OpenStack Summit HK 2013
dotCloud
 
PDF
Introduction to Docker - Docker workshop @Twitter
dotCloud
 
PDF
Docker worshop @Twitter - How to use your own private registry
dotCloud
 
PDF
Docker links | Docker workshop #2 at Twitter
dotCloud
 
PPTX
Intro Docker october 2013
dotCloud
 
PDF
[Open stack] heat + docker
dotCloud
 
PPTX
Dockerizing WordPress
dotCloud
 
PDF
Building images from dockerfiles
dotCloud
 
Immutable infrastructure with Docker and EC2
dotCloud
 
Docker at Spotify - Dockercon14
dotCloud
 
John Engates Keynote at Dockercon 14
dotCloud
 
Building a smarter application Stack by Tomas Doran from Yelp
dotCloud
 
DockerCon Keynote Ben Golub
dotCloud
 
Are VM Passé?
dotCloud
 
Docker in pratice -chenyifei
dotCloud
 
Wot2013云计算架构师峰会 -陈轶飞2
dotCloud
 
Docker introduction
dotCloud
 
Deploying containers and managing them on multiple Docker hosts, Docker Meetu...
dotCloud
 
Introduction to Docker and all things containers, Docker Meetup at RelateIQ
dotCloud
 
Dockerizing stashboard - Docker meetup at Twilio
dotCloud
 
Write Once and REALLY Run Anywhere | OpenStack Summit HK 2013
dotCloud
 
Introduction to Docker - Docker workshop @Twitter
dotCloud
 
Docker worshop @Twitter - How to use your own private registry
dotCloud
 
Docker links | Docker workshop #2 at Twitter
dotCloud
 
Intro Docker october 2013
dotCloud
 
[Open stack] heat + docker
dotCloud
 
Dockerizing WordPress
dotCloud
 
Building images from dockerfiles
dotCloud
 

Recently uploaded (20)

PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
July Patch Tuesday
Ivanti
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
July Patch Tuesday
Ivanti
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 

Dockerfile Basics | Docker workshop #2 at twitter, 2013-11-05

  • 1. @ Dockerfile Basics Docker workshop #2 at @Twitter, beginners class #dockerworkshop Docker version 0.6.5 By Julien Barbier @julienbarbier42
  • 2. 42h Dockerfiles • Dockerfiles = image representations • Simple syntax for building images • Automate and script the images creation
  • 3. 42h FROM • Sets the base image for subsequent instructions • Usage: FROM <image> • Example: FROM ubuntu • Needs to be the first instruction of every Dockerfile • TIP: find images with the command: docker search
  • 4. 42h RUN • Executes any commands on the current image and commit the results • Usage: RUN <command> • Example: RUN apt-get install –y memcached FROM ubuntu RUN apt-get install -y memcached is equivalent to: $ docker run ubuntu apt-get install -y memcached $ docker commit XXX
  • 5. 42h docker build Creates an image from a Dockerfile • From the current directory • From stdin • From GitHub $ docker build . $ docker build - < Dockerfile $ docker build github.com/creack/docker-firefox TIP: Use –t to tag your image
  • 6. 42h Example: Memcached FROM ubuntu RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list RUN apt-get update RUN apt-get install -y memcached • Dockerfile: https://github.com/jbarbier/Dockerfile-Basics-Docker-Workshop-2-Twitter/blob/master/slide_6/Dockerfile $ docker build –t memcached_d1 . • Test it $ docker run -i -t memcached_d1 /bin/bash root@1f452c9442fb:/# memcached -u daemon -vvv
  • 7. 42h #Commenting • # • Dockerfile: https://github.com/jbarbier/Dockerfile-Basics-Docker-Workshop-2-Twitter/blob/master/slide_7/Dockerfile # Memcached # # VERSION 1.0 # use the ubuntu base image provided by Docker FROM ubuntu # make sure the package repository is up to date RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list RUN apt-get update # install memcached RUN apt-get install -y memcached
  • 8. 42h MAINTAINER • specify name / contact of the person maintaining the Dockerfile • Example: MAINTAINER Julien, [email protected] • Dockerfile: https://github.com/jbarbier/Dockerfile-Basics-Docker-Workshop-2-Twitter/blob/master/slide_8/Dockerfile # Memcached # # VERSION 1.0 # use the ubuntu base image provided by Docker FROM ubuntu MAINTAINER Julien, [email protected] # make sure the package repository is up to date RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list RUN apt-get update # install memcached RUN apt-get install -y memcached
  • 9. 42h ENTRYPOINT 1/2 • Triggers a command as soon as the container starts • Example: ENTRYPOINT echo “Whale You Be My Container?” • Dockerfile: https://github.com/jbarbier/Dockerfile-Basics-Docker-Workshop-2-Twitter/blob/master/slide_9/Dockerfile # Whale you be my container? # # VERSION 0.42 # use the base image provided by Docker FROM base MAINTAINER Moby Dock [email protected] # say hello when the container is launched ENTRYPOINT echo "Whale you be my container"
  • 10. 42h ENTRYPOINT 2/2 • Run containers as executables! :) $ cat /etc/passwd | docker run -i wc • Dockerfile: https://github.com/jbarbier/Dockerfile-Basics-Docker-Workshop-2-Twitter/blob/master/slide_10/Dockerfile # This is wc # # VERSION 0.42 # use the base image provided by Docker FROM base MAINTAINER Roberto [email protected] # count lines with wc ENTRYPOINT ["wc", "-l"]
  • 11. 42h USER • Sets the username to use when running the image • Example: USER daemon
  • 12. 42h EXPOSE • Sets ports to be exposed to other containers when running the image (cf lightning talk by Michael Crosby @crosbymichael) • Example: EXPOSE 80
  • 13. Exercice: create a perfect Memcached Dockerfile Answer https://github.com/jbarbier/Dockerfile-Basics-Docker-Workshop-2-Twitter/blob/master/memcached/Dockerfile $ docker build -t memcached . $ docker run –p 11211 memcached #BOOM • Try it (update port number, $ docker ps) Python https://github.com/jbarbier/Dockerfile-Basics-Docker-Workshop-2-Twitter/blob/master/memcached/test.py Ruby https://github.com/jbarbier/Dockerfile-Basics-Docker-Workshop-2-Twitter/blob/master/memcached/test.rb PHP https://github.com/jbarbier/Dockerfile-Basics-Docker-Workshop-2-Twitter/blob/master/memcached/test.php 42h
  • 14. 42h Quizz: Online Dockerfile Tutorials Test your skills here: http://www.docker.io/learn/dockerfile/