Complete the command to initialize a Docker Swarm on the current node.
docker swarm [1]The docker swarm init command initializes the current node as a Swarm manager.
Complete the command to deploy a service named 'web' using the nginx image.
docker service [1] --name web nginxThe docker service create command deploys a new service in the swarm.
Fix the error in the command to scale the 'web' service to 3 replicas.
docker service scale web=[1]The correct syntax is docker service scale web=3 to set the number of replicas.
Fill both blanks to update the 'web' service image to 'nginx:alpine' and force the update.
docker service update --image [1] --force [2]
The --image option specifies the new image, and the service name 'web' is required to update it.
Fill all three blanks to create a replicated service named 'db' with 2 replicas using the 'mysql:5.7' image.
docker service create --name [1] --replicas [2] [3]
The service name is 'db', replicas count is 2, and the image is 'mysql:5.7' for this service.