A Docker Swarm service is a declarative definition of a task—typically a running container—to execute on manager or worker nodes. section 9.1
Place the service within Docker Swarm’s deployment model:
- A manager node schedules tasks and manages the cluster. section 9.1
- A worker node runs the tasks assigned by a manager and cannot operate without one. section 9.1
- A stack groups services and is defined in a Docker Compose file. section 9.1
From Compose to Swarm
A Docker Compose configuration normally runs a container service on one host; Docker Swarm uses almost the same, legacy Compose configuration to run services across multiple virtual machines for production deployment. section 9.1
