Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Docker para principiantes
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Yamil Urbina
November 07, 2015
Education
240
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Docker para principiantes
Cómo se puede usar Docker en un ambiente de desarrollo?
Yamil Urbina
November 07, 2015
More Decks by Yamil Urbina
See All by Yamil Urbina
Tu N*tfl*x rebelde en Raspberry Pi
yamilurbina
1
67
Deutsche Präsentation
yamilurbina
0
50
DevOps como cultura
yamilurbina
0
53
DevOps Introduction
yamilurbina
0
110
DevOps + Agile
yamilurbina
0
79
Docker El Alto - UPEA
yamilurbina
0
72
Docker Nights 7: Amazon EC2 Container Service
yamilurbina
0
57
DevOps: Conceptos y Aplicaciones
yamilurbina
0
140
The infrastructure of IoT
yamilurbina
0
52
Other Decks in Education
See All in Education
データマネジメント試験対策教材1〜データマネジメント基礎〜
yoshimura_datam
1
610
AIには考えられないことを考えられる人になるために
iqbocchi
1
220
JAWS-UG初心者支部#81 GWにEduJAWSと何か作ろうもくもく会!
otsuki
0
170
Fundamentos, Caracteristicas y Aplicaciones de los Modulos NumPy , Matplotlib y Pandas
robintux
0
190
Geografía y fútbol. Atlanta. la megalópolis del fútbol
juanmartin2026
1
12k
Examen de Selectividad. Geografía junio 2026 (Convocatoria Ordinaria). UCLM
juanmartin2026
1
4.8k
形骸化しない社内勉強会の取り組み - オーナーシップの作り方 / In-house study session
soudai
PRO
0
170
遊ぶかね欲しさの犯行(ルビ:労働)です
shirayanagiryuji
0
230
生成AI時代のエンジニア育成について考えてみた
akasan
0
210
学生のうちに考えておきたい信頼の話
suisan
1
590
Enterprise UI, v2
stevekinney
0
160
sepm-training-sample
levii
0
140
Featured
See All Featured
The Curious Case for Waylosing
cassininazir
1
460
The Pragmatic Product Professional
lauravandoore
37
7.4k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
1.2k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.3k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
650
VelocityConf: Rendering Performance Case Studies
addyosmani
332
25k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.7k
Navigating Team Friction
lara
192
16k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.1k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
340
Designing Powerful Visuals for Engaging Learning
tmiket
1
490
Transcript
DOCKER para principiantes
@yamilurbina DevOps en Mojix Coderoad
BIGGS Desarrollador Web
Primer día en RED SQUADRON una aplicación web
“Clona el proyecto. Necesitas git.” Project Manager
OK!
“También PHP, MySQL y Apache” Project Manager
SEGURO!
“y NodeJS con Bower para el frontend” Project Manager
OK…
“copia y usa la configuración del servidor de pruebas” Project
Manager
NO FUNCIONA
“Es que instalaste PHP 5.4. Usa PHP 5.5” Project Manager
OMG.
La infraestructura no es la aplicación Problema #1
• Servidor • Servicios • Versiones • Configuraciones
None
None
La repetición es una barrera para la productividad Problema #2
1. Instalar 2. Configurar 3. Corregir 4. Repetir 1-4
Los ambientes de desarrollo son inconsistentes Problema #3
• Windows y/o Linux • Obviar versiones • Obviar configuraciones
Producción == Desarrollo
LLEVAR CÓDIGO AL SERVIDOR ES DIFÍCIL
EN LINUX, WINDOWS Y PRODUCCIÓN
La infraestructura no es la aplicación Problema #1
La infraestructura se separa de la aplicación Solución #1
La repetición es una barrera para la productividad Problema #2
La productividad se aumenta automatizando lo repetitivo Solución #2
Los ambientes de desarrollo son inconsistentes Problema #3
Todos los ambientes son idénticos Solución #3
¿Cómo?
“Usemos máquinas virtuales” Project Manager
None
None
• Tamaño en GBs • Un OS entero? • Necesita
RAM • Cómo se distribuye?
SON MUCHOS PROBLEMAS.
USEMOS DOCKER
Docker
Docker es un motor de código abierto que automatiza el
manejo de cualquier aplicación…
…usando contenedores portables, livianos y auto suficientes que correrá virtualmente
en cualquier lugar.
•Usa contenedores •Es portable •Es auto suficiente •Corre en cualquier
lugar
Contenedores
None
• Estándar • Repetible • Desechable
None
None
• Estándar • Configurable • Repetible • Desechable
• Más liviano que virtualizar un OS • Un contenedor
provee un servicio • Se pueden enlazar varios contenedores • Los contenedores son reusables • Existe control de versiones
INSTALEMOS DOCKER
docker.com
• Docker Host (Linux) • Docker client (Cross-platform) • Usa
VirtualBox para cualquier OS • Para Windows, Linux y OS X
hub.docker.com
66MB!
CORRIENDO CONTENEDORES
docker run ubuntu Unable to find image 'ubuntu:latest' locally 3857f5237e43:
Pull complete Status: Downloaded newer image for ubuntu:latest
docker run ubuntu Unable to find image 'ubuntu:latest' locally 3857f5237e43:
Pull complete Status: Downloaded newer image for ubuntu:latest
docker run ubuntu Unable to find image 'ubuntu:latest' locally 3857f5237e43:
Pull complete Status: Downloaded newer image for ubuntu:latest
docker run ubuntu Unable to find image 'ubuntu:latest' locally 3857f5237e43:
Pull complete Status: Downloaded newer image for ubuntu:latest
/# apt-get update
/# apt-get install apache2 php5-mysql php5 mysql-server
/# exit
DISTRIBUCIÓN
docker commit $ID usuario/repo docker push usuario/repo
docker pull usuario/repo docker run usuario/repo
/# service apache2 start
FÁCIL
•Los contenedores proveen servicios •El tamaño es variable
• docs.docker.com • boot2docker.io • hub.docker.com/u/yamilurbina Recursos
Preguntas?