2 ms·
Swarm is an orchestrator while compose is designed to describe services to be run on a single machine. Basically, you may want to use swarm (or k8s or anything
by Eikon 7y ago
Swarm is an orchestrator while compose is designed to describe services to be run on a single machine.
Basically, you may want to use swarm (or k8s or anything else) in order to orchestrate your containers across a multi-machine cluster and compose when defining a set of services running on a single host.
- hinkley 7y agoDoes compose really have to be single machine? Yes, it focuses a lot on shared resources, but the negative space defined by where resources are not shared certainly informs any human-defined networking topology. I'm not so sure a tool couldn't make a pretty good stab at doing the same thing.