Complete the command to create an overlay network named 'mynetwork' in Docker Swarm.
docker network create -d [1] mynetworkThe overlay driver is used to create networks that span multiple Docker hosts in a Swarm cluster.
Complete the command to attach a service named 'web' to the overlay network 'mynetwork'.
docker service create --name web --network [1] nginxThe service must be attached to the overlay network mynetwork to communicate across Swarm nodes.
Fix the error in the command to inspect the overlay network named 'mynetwork'.
docker network [1] mynetworkThe inspect command shows detailed information about a specific network.
Fill both blanks to create an overlay network with encryption enabled and attach it to a service named 'db'.
docker network create -d [1] --opt encrypted=[2] secure_net && docker service create --name db --network secure_net postgres
Overlay networks support encryption with the --opt encrypted=true option. The driver must be 'overlay'.
Fill all three blanks to create a service named 'app' attached to two overlay networks 'frontend' and 'backend'.
docker network create -d [1] frontend && docker network create -d [2] backend && docker service create --name app --network [3] nginx
Both networks must use the 'overlay' driver. The service is attached to the 'frontend' network first.