SlideShare a Scribd company logo
Containers in 5... 9
minutes
Edwin Cruz
Tuesday, March 10, 15
Who am I?
• Principal Software Engineer at Crowd
Interactive
• Public Speaker
• Home made ceviche specialist
• OpenSource lover
Tuesday, March 10, 15
Contain... what ?
• A container is a self contained execution
environment that shares the kernel of the
host system
• Containers isolate and encapsulate your
application workloads from the host
system
Tuesday, March 10, 15
Why?
• Stop wasting precious resources running
VM’s
• Flexibility
• Self management
Tuesday, March 10, 15
Implementations
• FreeBSD Jails
• Solaris Zones
• Linux has multiple implementations
• LXC
• LXD
• CGManager
Linux has multiple implementations: LXC, LXD, CGManager, etc
Tuesday, March 10, 15
Why?
• Easy scaling
• Same image running in multiple instances
• Limit resources
• CPU, Memory, Disk Quotas, Network
• Easy to create
• Safety
Tuesday, March 10, 15
Differences
• Zones are expected to run a full system
(like a virtual machine)
• Linux Containers(like Docker) is expected
to run a single process (or small process
tree) isolated from the host OS
Tuesday, March 10, 15
Differences
• Solaris Zones and FreeBSD Jails can be
resized on the fly
• Linux containers need to be restarted
Tuesday, March 10, 15
Differences
• Jails and Zones takes advantage of ZFS
• Snapshots
• Cloning
Tuesday, March 10, 15
Let’s focus
• Docker
• SmartOS Zones
Tuesday, March 10, 15
Docker
• Started as a wrap of LXC
• Replaced LXC-tools
• Now using libcontainer
• Native Go Implementation for linux
namespacing
Tuesday, March 10, 15
Dockerfile
• FROM
• MAINTAINER
• ADD
• EXPOSE
• ENTRYPOINT
Tuesday, March 10, 15
FROM scratch
MAINTAINER Super Team <team@example.com>
ADD binary_file binary_file
ADD bin/boot.sh bin/boot.sh
EXPOSE 2000
ENTRYPOINT ["/binary_file"]
Tuesday, March 10, 15
Building
$ docker build
$ docker tag SHA tag-name
$ docker push tag-name
Tuesday, March 10, 15
Docker Registry
$ docker push registry.docker.com/project
$ docker images
Tuesday, March 10, 15
Running
$ docker pull docker.registry.com/project:tag-name
$ /usr/bin/docker run 
--name=router -p 0.0.0.0:8000:8000 
--env PRIVATE_IPV4=$COREOS_PRIVATE_IPV4 
--env EtcdHost=$COREOS_PRIVATE_IPV4 
--env EtcdPort=4001 
--env LOG_LEVEL=1 
tag-name
Tuesday, March 10, 15
Running
$ docker pull docker.registry.com/project:tag-name
$ /usr/bin/docker run 
--name=router -p 0.0.0.0:8000:8000 
--env PRIVATE_IPV4=$COREOS_PRIVATE_IPV4 
--env EtcdHost=$COREOS_PRIVATE_IPV4 
--env EtcdPort=4001 
--env LOG_LEVEL=1 
tag-name
Tuesday, March 10, 15
Solaris Zone Image
vmadm create <<EOL
{
"brand": "superduper",
"image_uuid": "fdea06b0-3f24-11e2-ac50-0b645575ce9d",
"alias": "web01",
"hostname": "web01",
"max_physical_memory": 512,
"quota": 20,
"resolvers": ["8.8.8.8", "208.67.220.220"],
"nics": [
{
"nic_tag": "admin",
"ip": "10.88.88.52",
"netmask": "255.255.255.0",
"gateway": "10.88.88.2"
}
]
}
EOL
54f1cc77-68f1-42ab-acac-5c4f64f5d6e0
Tuesday, March 10, 15
Solaris Zone Image
vmadm start 54f1cc77-68f1-42ab-acac-5c4f64f5d6e0
Tuesday, March 10, 15
Thanks!
Tuesday, March 10, 15

More Related Content

ODP
A brief history of Linux Containers
Kirill Kolyshkin
 
PPTX
Brief history of Linux containers
OpenVZ
 
PDF
Docker. General overview
Mirantis IT Russia
 
PDF
Introduction to Docker
Julio Martinez
 
PDF
Restinio (actual aug 2018)
Nicolai Grodzitski
 
PDF
no.de quick presentation at #ParisJS 4
Sylvain Zimmer
 
PPTX
Containers - Cloud Phoenix March Meetup
Miguel Zuniga
 
PDF
Docker-Vancouver Meetup - March 18, 2014 - An Introduction to Docker
bacongobbler
 
A brief history of Linux Containers
Kirill Kolyshkin
 
Brief history of Linux containers
OpenVZ
 
Docker. General overview
Mirantis IT Russia
 
Introduction to Docker
Julio Martinez
 
Restinio (actual aug 2018)
Nicolai Grodzitski
 
no.de quick presentation at #ParisJS 4
Sylvain Zimmer
 
Containers - Cloud Phoenix March Meetup
Miguel Zuniga
 
Docker-Vancouver Meetup - March 18, 2014 - An Introduction to Docker
bacongobbler
 

What's hot (19)

PDF
How Can OpenNebula Fit Your Needs: A European Project Feedback
NETWAYS
 
ODP
How to access your FIWARE Lab Instance.
José Ignacio Carretero Guarde
 
PDF
Introduction to Docker, December 2014 "Tour de France" Edition
Jérôme Petazzoni
 
PDF
How can OpenNebula fit your needs - OpenNebulaConf 2013
Maxence Dunnewind
 
PDF
Start your container journey safely
Rachid Zarouali
 
PDF
Talk on PHP Day Uruguay about Docker
Wellington Silva
 
PPTX
Os geo live in virtual box
Dr. Harald Schernthanner
 
PDF
EuroBSDCon 2021 - (auto)Installing BSD Systems
Vinícius Zavam
 
ODP
Docker. Micro services for lazy developers
Eugene Krevenets
 
PDF
Porting Puppet to OpenBSD
Puppet
 
PDF
FreeBSD hosting
punkt.de GmbH
 
PDF
Containers + Docker workshop - part 2
Davide Pelosi
 
PDF
MongoDB, Node.js And You: PART II
Mitch Pirtle
 
PDF
Fundamental Virtualisasi di openSUSE
utianayuba
 
PDF
Reef - ESUG 2010
Esteban Lorenzano
 
ODP
Docker and stuff
Raimondas Rimkevičius
 
PDF
Libcontainer: joining forces under one roof
Andrey Vagin
 
PPTX
Docker session III: Dockerfile
Degendra Sivakoti
 
PDF
Atmosphere packages and the chuck norris effect
Fabian Kromer
 
How Can OpenNebula Fit Your Needs: A European Project Feedback
NETWAYS
 
How to access your FIWARE Lab Instance.
José Ignacio Carretero Guarde
 
Introduction to Docker, December 2014 "Tour de France" Edition
Jérôme Petazzoni
 
How can OpenNebula fit your needs - OpenNebulaConf 2013
Maxence Dunnewind
 
Start your container journey safely
Rachid Zarouali
 
Talk on PHP Day Uruguay about Docker
Wellington Silva
 
Os geo live in virtual box
Dr. Harald Schernthanner
 
EuroBSDCon 2021 - (auto)Installing BSD Systems
Vinícius Zavam
 
Docker. Micro services for lazy developers
Eugene Krevenets
 
Porting Puppet to OpenBSD
Puppet
 
FreeBSD hosting
punkt.de GmbH
 
Containers + Docker workshop - part 2
Davide Pelosi
 
MongoDB, Node.js And You: PART II
Mitch Pirtle
 
Fundamental Virtualisasi di openSUSE
utianayuba
 
Reef - ESUG 2010
Esteban Lorenzano
 
Docker and stuff
Raimondas Rimkevičius
 
Libcontainer: joining forces under one roof
Andrey Vagin
 
Docker session III: Dockerfile
Degendra Sivakoti
 
Atmosphere packages and the chuck norris effect
Fabian Kromer
 
Ad

Viewers also liked (18)

PPTX
Mapa preconceptual alejandro humboldt
yolanda.proyecto
 
PPTX
Construyendo mapa preconceptual
sandrapcastillo144
 
PPT
Mapas preconceptuales
Miguel Mancuso
 
PPT
Mapas preconceptuales
Karen Calabro
 
PPT
cuidando nuestro cuerpo
ferigua
 
PPT
Conociendo nuestro cuerpo (power point)
caro - mari
 
DOCX
Cuidemos nuestro cuerpo
Zaira Lizeth Barba Moreno
 
PPTX
Cuidamos nuestro cuerpo
mechevalencia
 
PPTX
Cuidados del cuerpo humano
Gerardo Luna
 
PPTX
Cuidando nuestro cuerpo
GeraldhinGomez
 
PPTX
Diapositivas cuidados del cuerpo
zkeyla
 
PPTX
El Cuidado de Nuestro Cuerpo
ColeInformatico
 
PDF
Cuidado de nuestro cuerpo
Yasna Soto
 
PPTX
Diapositivas proyecto cuido y valoro mi cuerpo
MARYORBA
 
PPTX
Mi cuerpo
isabellapbm
 
PPTX
Conozco mi cuerpo y lo cuido
etorresl
 
PDF
Mapas concpetuales
Milagros De Anes
 
Mapa preconceptual alejandro humboldt
yolanda.proyecto
 
Construyendo mapa preconceptual
sandrapcastillo144
 
Mapas preconceptuales
Miguel Mancuso
 
Mapas preconceptuales
Karen Calabro
 
cuidando nuestro cuerpo
ferigua
 
Conociendo nuestro cuerpo (power point)
caro - mari
 
Cuidemos nuestro cuerpo
Zaira Lizeth Barba Moreno
 
Cuidamos nuestro cuerpo
mechevalencia
 
Cuidados del cuerpo humano
Gerardo Luna
 
Cuidando nuestro cuerpo
GeraldhinGomez
 
Diapositivas cuidados del cuerpo
zkeyla
 
El Cuidado de Nuestro Cuerpo
ColeInformatico
 
Cuidado de nuestro cuerpo
Yasna Soto
 
Diapositivas proyecto cuido y valoro mi cuerpo
MARYORBA
 
Mi cuerpo
isabellapbm
 
Conozco mi cuerpo y lo cuido
etorresl
 
Mapas concpetuales
Milagros De Anes
 
Ad

Similar to Containers in 5... 9 minutes (20)

PDF
Docker from A to Z, including Swarm and OCCS
Frank Munz
 
PDF
Docker introduction
Marcelo Ochoa
 
PPTX
Cohesion Techsessie Docker - Daniel Palstra
Daniel Palstra
 
PPT
presentation on Docker
Virendra Ruhela
 
PDF
eZ Publish 5: from zero to automated deployment (and no regressions!) in one ...
Gaetano Giunta
 
PPT
Docker.ppt
Ajit Mali
 
PDF
Docker in the Oracle Universe / WebLogic 12c / OFM 12c
Frank Munz
 
PDF
Victor Vieux at Docker Paris Meetup #1
Docker, Inc.
 
PDF
Docker presentation | Paris Docker Meetup
dotCloud
 
PPT
Docker.ppt
SandeepSharma508500
 
PPT
Docker meetup-jan-2015
JITENDRA KUMAR PATEL
 
PPTX
Docker Mentorweek beginner workshop notes
Sreenivas Makam
 
PPTX
Containerization - The DevOps Revolution
Yulian Slobodyan
 
PPTX
Central Iowa Linux Users Group: November Meeting -- Container showdown
Andrew Denner
 
PPTX
Developer workflow with docker
Wyn B. Van Devanter
 
PPT
Sebastien goasguen cloud stack and docker
ShapeBlue
 
PDF
The Three Musketeers
Frederic Lemay
 
PDF
Stackato v5
Jonas Brømsø
 
PDF
Docker - From Walking To Running
Giacomo Vacca
 
PDF
GIDS 2020 - Unpacking the Container
MelissaMcKay15
 
Docker from A to Z, including Swarm and OCCS
Frank Munz
 
Docker introduction
Marcelo Ochoa
 
Cohesion Techsessie Docker - Daniel Palstra
Daniel Palstra
 
presentation on Docker
Virendra Ruhela
 
eZ Publish 5: from zero to automated deployment (and no regressions!) in one ...
Gaetano Giunta
 
Docker.ppt
Ajit Mali
 
Docker in the Oracle Universe / WebLogic 12c / OFM 12c
Frank Munz
 
Victor Vieux at Docker Paris Meetup #1
Docker, Inc.
 
Docker presentation | Paris Docker Meetup
dotCloud
 
Docker meetup-jan-2015
JITENDRA KUMAR PATEL
 
Docker Mentorweek beginner workshop notes
Sreenivas Makam
 
Containerization - The DevOps Revolution
Yulian Slobodyan
 
Central Iowa Linux Users Group: November Meeting -- Container showdown
Andrew Denner
 
Developer workflow with docker
Wyn B. Van Devanter
 
Sebastien goasguen cloud stack and docker
ShapeBlue
 
The Three Musketeers
Frederic Lemay
 
Stackato v5
Jonas Brømsø
 
Docker - From Walking To Running
Giacomo Vacca
 
GIDS 2020 - Unpacking the Container
MelissaMcKay15
 

More from Edwin Cruz (12)

PDF
Codigo Escalable WDT
Edwin Cruz
 
PDF
SGCE 2015 - eCommerce platforms
Edwin Cruz
 
PDF
Devops with ansible
Edwin Cruz
 
PDF
Chilango Rails Ecommerce Lightning talk
Edwin Cruz
 
PDF
Home made ceviche
Edwin Cruz
 
PDF
Api's and ember js
Edwin Cruz
 
PDF
FSL Vallarta, mejorando el rendimiento de las aplicaciones web
Edwin Cruz
 
PPTX
Presentacion Programador Apasionado
Edwin Cruz
 
PPTX
MagmaRails - Passionate Programmer
Edwin Cruz
 
PPTX
Presentacion programador apasionado
Edwin Cruz
 
KEY
Api development with rails
Edwin Cruz
 
PPTX
Migrando Rails Apps entre Cloud y Bare Metal Servers
Edwin Cruz
 
Codigo Escalable WDT
Edwin Cruz
 
SGCE 2015 - eCommerce platforms
Edwin Cruz
 
Devops with ansible
Edwin Cruz
 
Chilango Rails Ecommerce Lightning talk
Edwin Cruz
 
Home made ceviche
Edwin Cruz
 
Api's and ember js
Edwin Cruz
 
FSL Vallarta, mejorando el rendimiento de las aplicaciones web
Edwin Cruz
 
Presentacion Programador Apasionado
Edwin Cruz
 
MagmaRails - Passionate Programmer
Edwin Cruz
 
Presentacion programador apasionado
Edwin Cruz
 
Api development with rails
Edwin Cruz
 
Migrando Rails Apps entre Cloud y Bare Metal Servers
Edwin Cruz
 

Recently uploaded (20)

PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PPTX
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
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.
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
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.
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
Software Development Methodologies in 2025
KodekX
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 

Containers in 5... 9 minutes

  • 1. Containers in 5... 9 minutes Edwin Cruz Tuesday, March 10, 15
  • 2. Who am I? • Principal Software Engineer at Crowd Interactive • Public Speaker • Home made ceviche specialist • OpenSource lover Tuesday, March 10, 15
  • 3. Contain... what ? • A container is a self contained execution environment that shares the kernel of the host system • Containers isolate and encapsulate your application workloads from the host system Tuesday, March 10, 15
  • 4. Why? • Stop wasting precious resources running VM’s • Flexibility • Self management Tuesday, March 10, 15
  • 5. Implementations • FreeBSD Jails • Solaris Zones • Linux has multiple implementations • LXC • LXD • CGManager Linux has multiple implementations: LXC, LXD, CGManager, etc Tuesday, March 10, 15
  • 6. Why? • Easy scaling • Same image running in multiple instances • Limit resources • CPU, Memory, Disk Quotas, Network • Easy to create • Safety Tuesday, March 10, 15
  • 7. Differences • Zones are expected to run a full system (like a virtual machine) • Linux Containers(like Docker) is expected to run a single process (or small process tree) isolated from the host OS Tuesday, March 10, 15
  • 8. Differences • Solaris Zones and FreeBSD Jails can be resized on the fly • Linux containers need to be restarted Tuesday, March 10, 15
  • 9. Differences • Jails and Zones takes advantage of ZFS • Snapshots • Cloning Tuesday, March 10, 15
  • 10. Let’s focus • Docker • SmartOS Zones Tuesday, March 10, 15
  • 11. Docker • Started as a wrap of LXC • Replaced LXC-tools • Now using libcontainer • Native Go Implementation for linux namespacing Tuesday, March 10, 15
  • 12. Dockerfile • FROM • MAINTAINER • ADD • EXPOSE • ENTRYPOINT Tuesday, March 10, 15
  • 13. FROM scratch MAINTAINER Super Team <[email protected]> ADD binary_file binary_file ADD bin/boot.sh bin/boot.sh EXPOSE 2000 ENTRYPOINT ["/binary_file"] Tuesday, March 10, 15
  • 14. Building $ docker build $ docker tag SHA tag-name $ docker push tag-name Tuesday, March 10, 15
  • 15. Docker Registry $ docker push registry.docker.com/project $ docker images Tuesday, March 10, 15
  • 16. Running $ docker pull docker.registry.com/project:tag-name $ /usr/bin/docker run --name=router -p 0.0.0.0:8000:8000 --env PRIVATE_IPV4=$COREOS_PRIVATE_IPV4 --env EtcdHost=$COREOS_PRIVATE_IPV4 --env EtcdPort=4001 --env LOG_LEVEL=1 tag-name Tuesday, March 10, 15
  • 17. Running $ docker pull docker.registry.com/project:tag-name $ /usr/bin/docker run --name=router -p 0.0.0.0:8000:8000 --env PRIVATE_IPV4=$COREOS_PRIVATE_IPV4 --env EtcdHost=$COREOS_PRIVATE_IPV4 --env EtcdPort=4001 --env LOG_LEVEL=1 tag-name Tuesday, March 10, 15
  • 18. Solaris Zone Image vmadm create <<EOL { "brand": "superduper", "image_uuid": "fdea06b0-3f24-11e2-ac50-0b645575ce9d", "alias": "web01", "hostname": "web01", "max_physical_memory": 512, "quota": 20, "resolvers": ["8.8.8.8", "208.67.220.220"], "nics": [ { "nic_tag": "admin", "ip": "10.88.88.52", "netmask": "255.255.255.0", "gateway": "10.88.88.2" } ] } EOL 54f1cc77-68f1-42ab-acac-5c4f64f5d6e0 Tuesday, March 10, 15
  • 19. Solaris Zone Image vmadm start 54f1cc77-68f1-42ab-acac-5c4f64f5d6e0 Tuesday, March 10, 15