Quick Recap
Excellent! We’ve been Docker Machining and Swarming like a boss. We’ve deployed our application to not one, but two cloud providers, creating the infrastructure we needed as we went.
To recap:
-
We covered the steps necessary to create a multinode Swarm cluster on DigitalOcean or AWS.
-
We deployed our application to the Swarm cluster by making our Docker CLI target the manager node:
$ eval $(docker-machine env do-manager-1) and then deploying the application:
$ docker stack deploy -c docker-stack.yml myapp -
We used the visualizer to see the placement of containers on our nodes.
-
We learned about deploy: options that can be specified in our docker-stack.yml file, including placement constraints. ...
Get Docker for Rails Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.