$30 off During Our Annual Pro Sale. View Details »
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
120
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
230
Introduction to Go
sobrinho
1
120
Casos de otimização em aplicações Ruby on Rails
sobrinho
0
310
Introduction to automated tests (Goiania)
sobrinho
0
150
Introduction to automated tests
sobrinho
3
240
Otimização de Aplicações RoR
sobrinho
1
280
Introdução ao React (Simplificado)
sobrinho
0
150
Algoritmos de pesquisa
sobrinho
0
680
Introdução ao React
sobrinho
0
340
Other Decks in Programming
See All in Programming
Go コードベースの構成と AI コンテキスト定義
andpad
0
140
Tinkerbellから学ぶ、Podで DHCPをリッスンする手法
tomokon
0
140
Flutter On-device AI로 완성하는 오프라인 앱, 박제창 @DevFest INCHEON 2025
itsmedreamwalker
1
150
Basic Architectures
denyspoltorak
0
120
愛される翻訳の秘訣
kishikawakatsumi
3
340
TerraformとStrands AgentsでAmazon Bedrock AgentCoreのSSO認証付きエージェントを量産しよう!
neruneruo
4
1.8k
モデル駆動設計をやってみようワークショップ開催報告(Modeling Forum2025) / model driven design workshop report
haru860
0
280
組み合わせ爆発にのまれない - 責務分割 x テスト
halhorn
1
160
【卒業研究】会話ログ分析によるユーザーごとの関心に応じた話題提案手法
momok47
0
120
Full-Cycle Reactivity in Angular: SignalStore mit Signal Forms und Resources
manfredsteyer
PRO
0
170
AI Agent Tool のためのバックエンドアーキテクチャを考える #encraft
izumin5210
4
1.2k
AtCoder Conference 2025「LLM時代のAHC」
imjk
2
580
Featured
See All Featured
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
290
Thoughts on Productivity
jonyablonski
73
5k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
230
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.7k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
0
1.8k
From π to Pie charts
rasagy
0
91
How to build a perfect <img>
jonoalderson
0
4.7k
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.3k
It's Worth the Effort
3n
187
29k
Odyssey Design
rkendrick25
PRO
0
440
More Than Pixels: Becoming A User Experience Designer
marktimemedia
2
260
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
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