13 Deploying distributed applications as stacks in Docker Swarm

I have a confession--in the last chapter I had you spend a lot of time learning how to create Docker Swarm services with the command line, but you won’t ever do that in a real project. It’s a useful way to get started with orchestration and to understand the difference between running containers yourself and having an orchestrator manage them for you. But in a real system you won’t connect to the manager and send it commands to run services. Instead, you’ll describe your application in a YAML file that you’ll send to the manager; it will then decide what actions to take to get your app running. It’s the same desired state approach that you’ve seen with Docker Compose--the YAML ...

Get Learn Docker in a Month of Lunches 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.