Post on 05-Apr-2017
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 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
Single Docker
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