Docker Swarm Lab # 3

Posted on Posted in Docker, Docker Swarm

As we discussed in the previous blog posts docker swarm mode provides in-built orchestration capability straight out of the box. We can use the docker Service API to create services composed of multiple instances of a container from the same base image. As all the containers are made from the same image they are ephemeral in nature and can be replaced in case of failure without investing time in troubleshooting these instances.

The --replicas flag is used to set the number of replica tasks for a replicated service.



Leave a Reply

Your email address will not be published. Required fields are marked *