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
Yamil Urbina
November 07, 2015
Education
240
0
Share
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
63
Deutsche Präsentation
yamilurbina
0
48
DevOps como cultura
yamilurbina
0
47
DevOps Introduction
yamilurbina
0
100
DevOps + Agile
yamilurbina
0
77
Docker El Alto - UPEA
yamilurbina
0
60
Docker Nights 7: Amazon EC2 Container Service
yamilurbina
0
56
DevOps: Conceptos y Aplicaciones
yamilurbina
0
130
The infrastructure of IoT
yamilurbina
0
50
Other Decks in Education
See All in Education
生成AI時代のエンジニア育成について考えてみた
akasan
0
130
Data Presentation - Lecture 5 - Information Visualisation (4019538FNR)
signer
PRO
1
3.2k
2026年度春学期 統計学 第2回 統計資料の収集と読み方 (2026. 4. 16)
akiraasano
PRO
0
160
Dashboards - Lecture 11 - Information Visualisation (4019538FNR)
signer
PRO
1
2.7k
Interaction - Lecture 10 - Information Visualisation (4019538FNR)
signer
PRO
0
2.6k
[2026前期火5] 論理学(京都大学文学部 前期 第6回)「かつとまたはの規則」
yatabe
0
210
コミュニティを通じた_キャリア設計のススメ_20260424.pdf
masakiokuda
0
290
AI進化史:LLMからAIエージェントへ
mickey_kubo
0
180
We部コミュニティスライド2026-04-24
junhat6
0
170
応募課題(’25広島)
forget1900
0
1.6k
Data Processing and Visualisation Frameworks - Lecture 6 - Information Visualisation (4019538FNR)
signer
PRO
1
3.1k
The Lotus and the Frog
vyadav
0
100
Featured
See All Featured
The browser strikes back
jonoalderson
0
1.1k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.1k
So, you think you're a good person
axbom
PRO
2
2k
Skip the Path - Find Your Career Trail
mkilby
1
140
How to build a perfect <img>
jonoalderson
1
5.6k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.3k
What's in a price? How to price your products and services
michaelherold
247
13k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.2k
Heart Work Chapter 1 - Part 1
lfama
PRO
7
36k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
210
Abbi's Birthday
coloredviolet
2
7.9k
BBQ
matthewcrist
89
10k
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?