Question: A Docker service web is running with a scale factor of 1 (replicas = 1). Bob intends to use the command docker service update --replicas=3

A Docker service ‘web’ is running with a scale factor of 1

(replicas = 1). Bob intends to use the command ‘docker service update --replicas=3 web’. Alice intends to use the command

‘docker service scale web=3’. How do the outcomes of these two commands differ?

A. Bob’s command results in an error. Alice’s command updates the number of replicas of the ‘web’ service to 3.

B. Bob’s command only updates the service definition, but no new replicas are started. Alice’s command results in the actual scaling up of the ‘web’ service.

C. Bob’s command updates the number of replicas of the ‘web’

service to 3. Alice’s command results in an error.

D. Both Bob’s and Alice’s commands result in exactly the same outcome, which is 3 instances of the ‘web’ service.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Restaurant From Concept To Operation Questions!