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
Introdução ao Docker
Search
Gabriel Sobrinho
October 17, 2015
Programming
1
100
Introdução ao Docker
Gabriel Sobrinho
October 17, 2015
Tweet
Share
More Decks by Gabriel Sobrinho
See All by Gabriel Sobrinho
Arquiteturas Multi-Tenant RubyConf 2022
sobrinho
0
220
Introduction to Go
sobrinho
1
110
Casos de otimização em aplicações Ruby on Rails
sobrinho
0
300
Introduction to automated tests (Goiania)
sobrinho
0
130
Introduction to automated tests
sobrinho
3
230
Otimização de Aplicações RoR
sobrinho
1
270
Introdução ao React (Simplificado)
sobrinho
0
150
Algoritmos de pesquisa
sobrinho
0
650
Introdução ao React
sobrinho
0
330
Other Decks in Programming
See All in Programming
Spring gRPC について / About Spring gRPC
mackey0225
0
220
2,500万ユーザーを支えるSREチームの6年間のスクラムのカイゼン
honmarkhunt
6
5.2k
GoとPHPのインターフェイスの違い
shimabox
2
170
Boost Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
120
GAEログのコスト削減
mot_techtalk
0
120
[JAWS-UG横浜 #79] re:Invent 2024 の DB アップデートは Multi-Region!
maroon1st
1
140
XStateを用いた堅牢なReact Components設計~複雑なClient Stateをシンプルに~ @React Tokyo ミートアップ #2
kfurusho
1
870
“あなた” の開発を支援する AI エージェント Bedrock Engineer / introducing-bedrock-engineer
gawa
11
1.9k
Conform を推す - Advocating for Conform
mizoguchicoji
3
690
2024年のkintone API振り返りと2025年 / kintone API look back in 2024
tasshi
0
220
Java Webフレームワークの現状 / java web framework at burikaigi
kishida
9
2.2k
お前もAI鬼にならないか?👹Bolt & Cursor & Supabase & Vercelで人間をやめるぞ、ジョジョー!👺
taishiyade
5
3.9k
Featured
See All Featured
The Power of CSS Pseudo Elements
geoffreycrofte
75
5.5k
Typedesign – Prime Four
hannesfritz
40
2.5k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
29
2.2k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.1k
Facilitating Awesome Meetings
lara
51
6.2k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Music & Morning Musume
bryan
46
6.3k
Docker and Python
trallard
44
3.3k
Making Projects Easy
brettharned
116
6k
Visualization
eitanlees
146
15k
Practical Orchestrator
shlominoach
186
10k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
129
19k
Transcript
Introdução a conteinerização de aplicações
GABRIEL SOBRINHO gabrielsobrinho.com github.com/sobrinho twitter.com/sobrinho speakerdeck.com/sobrinho
hite.com.br
None
Docker
Docker • Projeto PaaS da dotcloud • Open source escrito
em Go • Facilita a criação de containers • Linux, OS X, Windows
None
Matrix from hell
Matrix from hell
Soluções
Docker
Docker
None
Instalação
OS X • Necessário rodar uma VM com Linux •
Preferencialmente o VMware Fusion
OS X brew install docker docker-machine docker-machine create --driver=virtualbox docker
eval $(docker-machine env docker)
None
Conceitos
Imagens • Template read-only • Contém os arquivos da sua
aplicação • Geradas a partir de um Dockerfile
Containers • Gerados a partir de uma imagem • Recursos
controlados (CPU, memória, I/O, etc) • Podem ser descartáveis ou persistentes
Dockerfile FROM ruby:2.2 RUN mkdir /usr/src/app WORKDIR /usr/src/app COPY .
/usr/src/app EXPOSE 9292 CMD ["bundle", "exec", "puma", "-t", "4:4"]
Compilando docker build -t app .
Executando docker run app
Volumes • Arquivos persistentes no container • Backups, aplicação, logs,
etc
Volumes
None
Live Demo Murphy pediu para avisar que não irá funcionar
como esperado
None
Brindes
Cupom 15% RAILS_BH_15
http://www.casadocodigo.com.br/products/livro-docker
None
Obrigado!
Dúvidas?
hite.com.br
Referências https://www.docker.com http://infoslack.com/docker/ http://www.casadocodigo.com.br/products/livro-docker