There are various ways how this can be achieved. Some of them are as follows:
- Rolling updates
- Blue-green deployments
- Canary releases
Docker Swarm supports rolling updates out of the box. The other two types of deployments can be achieved with some extra effort from our side.