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
How to start with docker
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Toni Van de Voorde
January 27, 2017
Technology
220
1
Share
How to start with docker
Shows some tips & tricks on how to start with docker for php projects.
Toni Van de Voorde
January 27, 2017
More Decks by Toni Van de Voorde
See All by Toni Van de Voorde
Jenkins Automation
tonivdv
0
460
Automate jenkins job creation (#phpbnl18)
tonivdv
1
240
Automate jenkins job creation
tonivdv
1
1.3k
How we use docker for our development environment
tonivdv
5
390
Other Decks in Technology
See All in Technology
AIAgentと取り組むKaggle
508shuto
2
560
Claude Codeですべての日常業務を爆速化しよう!
minorun365
PRO
15
13k
実践 TanStack Start ― 新規プロダクトを開発して確立した、サーバーとクライアント境界の設計パターン / Practical TanStack Start Server-Client Boundary Patterns
kaminashi
2
320
生成AIに振り回されない 〜確率論と決定論の使い分け〜
shukob
0
110
Agentic AI時代における メルカリのAIガバナンスとガードレール実装
naoichihara
15
14k
Anthropic AIネイティブ・スタートアップ構築のプレイブック を理解する
nagatsu
0
180
Harnessing the Power of Mocks and Stubs in PHPUnit / #laravellivejp
asumikam
0
580
GitHub Copilot のこれまでとこれから: From Copilot to Collaborative Agents
yuriemori
1
190
【禁断】Obsidianの第二の脳に「知の巨人」と呼ばれた師匠の脳をロードしてみた
nagatsu
0
6.5k
大規模環境でどのように監視を実現する?
yuobayashi
1
140
管理アカウント単一運用からAWS Organizationsに移行するの大変で滅
hiramax
0
240
AI駆動開発でなんでもハンズオン環境をつくってみた
yoshimi0227
0
140
Featured
See All Featured
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
170
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Speed Design
sergeychernyshev
33
1.7k
The Limits of Empathy - UXLibs8
cassininazir
1
340
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.5k
How Software Deployment tools have changed in the past 20 years
geshan
0
34k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Building Applications with DynamoDB
mza
96
7k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.1k
4 Signs Your Business is Dying
shpigford
187
22k
Six Lessons from altMBA
skipperchong
29
4.2k
Documentation Writing (for coders)
carmenintech
77
5.3k
Transcript
How to start with docker Toni Van de Voorde CTO
@ Adlogix.eu / Adsdaq.eu @tonivdv Unconference
Setup • Native on linux • Docker for Mac/Windows •
Docker toolbox
Docker For Mac • Pros • “Native” approach • No
virtualbox (uses lightweight virtualization of mac-os hypervisor framework) • Nice UX • Cons • Shares without NFS • Only 1 virtual machine
Docker Toolbox • Pros • Easy NFS support with docker-machine-nfs
(OSX only) • Not only 1 virtual machine • Use whatever hypervisor you love (virtualbox, xhyve, parallel, vmware, …) • Cons • Less UX ?
Docker Machine Tips Configure ip range per different box dm
create \ -d virtualbox --virtualbox-hostonly-cidr "192.168.70.1/24" --virtualbox-disk-size "10000" docker-test
Docker Machine Tips Embrace speed by activating NFS brew install
docker-machine-nfs $ docker-machine-nfs docker-test https://github.com/adlogix/docker-machine-nfs
General Tips • Dnsmasq + jwilder’s nginx-proxy • Define your
services with docker-compose • Don’t put sensitive data in the images (ssh keys etc) • Still be careful with case sensitivity
How to with ssh? • Mount to container volumes: -
~/.ssh:/root/.ssh • SSH Agent • (hack) Copy to “volume” docker run --rm --name ssh-data -v my-ssh-data:/root/.ssh –v ${USER_PRIVATE_KEY}:/root/.host-ssh:ro busybox sh -c 'cp ~/.host-ssh/* ~/.ssh && chown -R root:root ~/.ssh && chmod -R 400 ~/.ssh’ docker run –v my-ssh-data:/root/.ssh composer ...
Make cli-commands #!/bin/bash cd $(dirname "$0") docker-compose run --rm composer
"$@” #!/bin/bash cd $(dirname "$0") docker-compose run --rm php-cli php "$@"
Demo
Questions?