Complete the command to list all running Docker containers.
docker [1]The docker ps command lists all running containers.
Complete the command to create a Docker Swarm cluster on the current machine.
docker swarm [1]The docker swarm init command initializes a new swarm cluster on the current machine.
Fix the error in the command to deploy a service named 'web' with 3 replicas.
docker service create --name web --replicas [1] nginxThe replicas option requires a positive integer. '3' is correct.
Fill both blanks to create a Docker Compose file snippet that defines a service named 'app' using the image 'myapp:latest'.
services:
app:
image: [1]
[2]: 80The image is 'myapp:latest' and 'ports' maps container port 80 to the host.
Fill all three blanks to write a Docker command that updates the 'web' service to use 5 replicas and the image 'nginx:stable'.
docker service update --replicas [1] --image [2] [3]
Set replicas to 5, image to 'nginx:stable', and specify the service name 'web'.