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
1
200
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
Tweet
Share
More Decks by Toni Van de Voorde
See All by Toni Van de Voorde
Jenkins Automation
tonivdv
0
440
Automate jenkins job creation (#phpbnl18)
tonivdv
1
230
Automate jenkins job creation
tonivdv
1
1.3k
How we use docker for our development environment
tonivdv
5
380
Other Decks in Technology
See All in Technology
Greatest Disaster Hits in Web Performance
guaca
0
250
顧客との商談議事録をみんなで読んで顧客解像度を上げよう
shibayu36
0
240
登壇駆動学習のすすめ — CfPのネタの見つけ方と書くときに意識していること
bicstone
3
110
今日から始めるAmazon Bedrock AgentCore
har1101
4
410
予期せぬコストの急増を障害のように扱う――「コスト版ポストモーテム」の導入とその後の改善
muziyoshiz
1
1.9k
会社紹介資料 / Sansan Company Profile
sansan33
PRO
15
400k
M&A 後の統合をどう進めるか ─ ナレッジワーク × Poetics が実践した組織とシステムの融合
kworkdev
PRO
1
450
プロダクト成長を支える開発基盤とスケールに伴う課題
yuu26
4
1.3k
OWASP Top 10:2025 リリースと 少しの日本語化にまつわる裏話
okdt
PRO
3
770
20260208_第66回 コンピュータビジョン勉強会
keiichiito1978
0
140
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
13k
AWS Network Firewall Proxyを触ってみた
nagisa53
1
230
Featured
See All Featured
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.6k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
0
260
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
310
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
0
1.1k
Become a Pro
speakerdeck
PRO
31
5.8k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
730
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
93
New Earth Scene 8
popppiees
1
1.5k
A designer walks into a library…
pauljervisheath
210
24k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
140
Mind Mapping
helmedeiros
PRO
0
87
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
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?