Q. Which of the following Docker commands is used to scale a service in Docker Swarm?
β
Correct Answer: (A)
docker service scale service_name=replicas
Explanation: 'docker service scale service_name=replicas' is used to scale a service to the desired number of replicas in Docker Swarm.