Development
Swarm Cluster
docker 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 ïŹle
change notiïŹcations 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
Single Docker
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
PROMO CODE
1 month free ANY Plan
DOCKER-4-BDAY

Development Swarm Cluster

  • 1.
    Development Swarm Cluster docker forMac/Windows docker-compose v3 docker-in-docker
  • 2.
    About me
 ‱Chief ofResearch @codefresh.io ‱github.com/alexei-led/pumba ‱#docker, #golang, #aws ‱medium.com/@alexeiled ‱@alexeiled
  • 3.
    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 ïŹle change notiïŹcations 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)
  • 4.
    Docker Swarm Mode byNigel Poulton http://blog.nigelpoulton.com/docker-launches-kubernetes-killer/
  • 5.
    $ docker stackdeploy --compose-file docker-compose.yml myapp
  • 6.
    $ docker stackdeploy 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
  • 7.
  • 8.
    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
  • 10.
  • 11.
    PROMO CODE 1 monthfree ANY Plan DOCKER-4-BDAY