This question illustrates the theoretical differences between docker run
and docker service
.
What I don't understand is when would one need to use the exact same container replicated multiple times (as per the Docker documentation example)? There, they run the same web app replicated 5 times.
Is deployment on Kubernetes (for example) a potential use case, where the developer does not want to centralize the app on one host, in order to make it more resilient, hence why 5 replicas are created?
To understand, can someone please please with an example use case, where the docker service
is useful?