Webinar: Development Swarm Cluster with Docker Compose V3
-
Upload
codefresh -
Category
Engineering
-
view
136 -
download
0
Transcript of Webinar: Development Swarm Cluster with Docker Compose V3
Development
Swarm Clusterdocker for Mac/Windows
docker-compose v3
docker-in-docker
About me…
•Chief of Research @codefresh.io
•github.com/alexei-led/pumba
•#docker, #golang, #aws
•medium.com/@alexeiled
•@alexeiled
Docker 4 Mac/Windows• Easy installation and setup of a complete Docker
development environment
• Fast and reliable performance with native macOS
virtualization (xhyve for OS X) or native Windows Hyper V
virtualization (for Windows) running a custom minimal Linux
distro (Alpine)
• Seamless volume mounting for code and data, including file
change notifications that unlock fast edit-test cycles
• Excellent network support allows working transparently with
VPNs and proxies
• Multi-CPU Architecture Support: arm, mips, ppc64le and
even s390x (Mac only)
Docker Swarm Mode
by Nigel Poulton http://blog.nigelpoulton.com/docker-launches-kubernetes-killer/
$ docker stack deploy --compose-file docker-compose.yml myapp
$ docker stack deploy
vs
$ docker-compose up
• docker client has a built-in docker-
compose.yaml v3.x parser
• docker client reads deploy section to
deploy a service on swarm cluster
• docker-compose CLI tool also has a
built-in docker-compose.yaml v3.x
parser
• docker-compose CLI tool ignores
deploy section and does not deploy
on swarm cluster
• docker-compose CLI tool works
against single Docker host only
Docker Swarm
Cluster
Single Docker
Host
Compose v3 vs Bash
Compose v3 `deploy`• mode - global | replicated
• replicas
• placement - constraints: node.id/hostname/role/labels,
engine.labels
• update_config - parallelism, delay, failure_action, monitor,
max_failure_ratio
• resources - cpu_shares, cpu_quota, cpuset, mem_limit,
memswap_limit, mem_swappiness
• restart_policy - condition, delay, max_attempts, window
• labels
https://github.com/alexei-led/swarm-mac
Next Steps• Sign up for a free Codefresh account -
www.codefresh.io
• Sign up for our newsletter -
www.codefresh.io/blog
• Check out our upcoming Meetups & Webinars -
www.codefresh.io/meetups
• Follow us on Twitter - @codefresh