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
Simplify your dev life with Docker (WebElement ...
Search
Vladimír Kriška
August 20, 2015
Programming
0
150
Simplify your dev life with Docker (WebElement Banská Bystrica)
Vladimír Kriška
August 20, 2015
Tweet
Share
More Decks by Vladimír Kriška
See All by Vladimír Kriška
Twelve-Factor app with Docker
ujovlado
0
96
Design a REST API you will love to work with
ujovlado
0
730
Docker for PHP developers - Tips, Tricks & Lessons learned
ujovlado
3
460
Docker ‐ from development to production in minutes (PoSobota #91)
ujovlado
0
360
Non-traditional use of Docker (Nette Camp #3)
ujovlado
0
120
Contributions [lightning talk] (PyconCZ 2015)
ujovlado
0
76
CSS Flexbox (WebElement #35)
ujovlado
0
140
Don't underestimate CSS (WebElement #30)
ujovlado
0
570
Database Migrations in PHP (Posobota #66)
ujovlado
0
110
Other Decks in Programming
See All in Programming
複雑なフォームの jotai 設計 / Designing jotai(state) for Complex Forms #layerx_frontend
izumin5210
6
1.6k
KawaiiLT 登壇資料 キャリアとモチベーション
hiiragi
0
160
Cursorを活用したAIプログラミングについて 入門
rect
0
220
Jakarta EE Meets AI
ivargrimstad
0
920
個人開発の学生アプリが企業譲渡されるまで
akidon0000
2
1.2k
eBPF超入門「o11yに使える」とは (20250424_eBPF_o11y)
thousanda
1
120
Road to Ruby for A Linguistics Nerd
hayat01sh1da
PRO
0
300
インプロセスQAにおいて大事にしていること / In-process QA Meetup
medley
0
170
Boast Code Party / RubyKaigi 2025 After Event
lemonade_37
0
110
“技術カンファレンスで何か変わる?” ──RubyKaigi後の自分とチームを振り返る
ssagara00
0
110
ドメイン駆動設計とXPで支える子どもの未来 / Domain-Driven Design and XP Supporting Children's Future
nrslib
0
290
監視 やばい
syossan27
12
10k
Featured
See All Featured
A better future with KSS
kneath
239
17k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
5
570
Bash Introduction
62gerente
613
210k
Building an army of robots
kneath
305
45k
RailsConf 2023
tenderlove
30
1.1k
The Cult of Friendly URLs
andyhume
78
6.3k
Art, The Web, and Tiny UX
lynnandtonic
298
20k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
129
19k
For a Future-Friendly Web
brad_frost
177
9.7k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
10
800
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.8k
Designing Experiences People Love
moore
142
24k
Transcript
Simplify your dev life with Docker Vladimír Kriška (@ujovlado) WebElement
Banská Bystrica
Past (vedle pasti) • New computer • Install Apache|Nginx, MySQL|PostgreSQL,
PHP, MongoDB, etc., etc. • Start services … start coding After few weeks • OMG this project needs newer version of MySQL • Problems • And problems
Future • New computer • Prepare Dockerfile with exact requirements
• Build it • Run it (with services inside) … start coding After few weeks • OMG this project needs … whatever • Never mind, I'll build a new container • Profit
Yo Dawg, I heard you like computers So I put
computer into computer, So you can computer while you computer
What is Docker? "Docker is an open platform for building,
shipping and running distributed applications."
What is Docker for me? Primary • Engine for working
with containers • Any virtual machine • Testing platform • Tool to not install "shit" to your computer Not yet • Running in production
What really Docker is? Same as your system • Set
of files with "/sbin/init" file So, you can • Take parts of your system and virtualize them without need to virtualize full OS
Containers without Docker (!) https://chimeracoder.github.io/docker-without-docker mkdir debian-tree debootstrap --arch=amd64 unstable
debian-tree systemd-nspawn -D debian-tree/ /bin/bash machinectl list machinectl poweroff debian-tree
OK, let's go Three basic steps 1) Create Dockerfile 2)
Build it 3) Run it
Dockerfile & Build & Run FROM debian:jessie RUN apt-get update
&& apt-get upgrade -y RUN apt-get install nginx -y RUN mkdir -p /data COPY package.tar.gz /data/ EXPOSE 80 docker build -t wblmnt/bb . docker run -i -t --rm -p 8037:80 wblmnt/bb:latest
Case I & Case II Everything in one container •
Easy to start • Same as any virtual machine / container • Need to commit changes at the end (as many times as containers count)
Case III Multiple containers with separate store • For production
environment • Hard to setup • Deployment?
Examples
Thanks