Scaling and Deleting Services
Let's learn how to scale and remove services managed by the swarm.
We'll cover the following
Scaling services
Another powerful feature of services is the ability to scale them up and down by adding or removing replicas.
Assume business is booming and you’re experiencing double the number of requests to your web front-end. Fortunately, you can easily scale the number of replicas with the docker service scale
command.
Run the following command to scale the web-fe service from 5 to 10 replicas.
Get hands-on with 1400+ tech skills courses.