I read the contents of the book and I found a very interesting section about the container orchestration about managing multiple docker containers, my question is if this section could provide the principles/basis in which the deployment of the docker containers works in the cloud, or is any other specific section that cover the cloud scenarios.
Mauricio Mena wrote:I read the contents of the book and I found a very interesting section about the container orchestration about managing multiple docker containers, my question is if this section could provide the principles/basis in which the deployment of the docker containers works in the cloud, or is any other specific section that cover the cloud scenarios.
Chapter 9 (which I believe is the one you're talking about) tries to give an overview of the available orchestration tools in the ecosystem. Having some method for orchestration is fairly crucial if you're planning to run multiple containers across multiple machines - doing it manually gets tiring very quickly! This isn't necessarily cloud specific (the tools would work equivalently well there on a bunch of spare desktop machines lying around at home), but putting your containers on a cloud provider is undeniably the most common use-case.
We also cover a few miscellaneous bits relevant to the cloud elsewhere in the book - a technique in chapter 4 talks about using docker-machine to create a virtualbox VM containing Docker, and notes that you can follow a very similar process for creating machines on cloud providers with Docker on them. Chapter 11 and 12 are dedicated to talking about the realities of running Docker in production, and the techniques here apply wherever you decide to run Docker. The 'securing your docker api' technique in chapter 10 is worth a mention as well - it's a very bad idea to expose your Docker api port externally on the cloud without securing it with TLS!
However, the process of actually starting your machines up, getting Docker on them, managing them and destroying them when done is left as an exercise to the reader (the official documentation has some examples for using docker-machine on DigitalOcean and AWS https://docs.docker.com/machine/ which may be a useful start). There's such a variety of cloud providers we tried not to get bogged down in the specifics - we could talk about using an Amazon-specific service (like DynamoDB) with Docker, but that wouldn't help you much if you moved to DigitalOcean! Instead the book aims to provide information that will apply regardless of what machines your containers are running on or how you create and destroy them.
posted 4 years ago
Totally agree with you try to cover an specific cloud solution, will be not really useful for other user that are working with another one. Also interesting the way in which the book seems to be structured as cover in the points that you mention "running docker in production" also the "securing docker" the realities that you would face once you try to put this on production. Thanks for the answer .