Complete the command to start a Docker container named 'webapp'.
docker run --name [1] -d nginxThe --name option assigns the container a name. Here, 'webapp' is the container name.
Complete the Docker network creation command to allow containers to communicate.
docker network create [1]Creating a custom network named 'isolated_net' allows containers to communicate on that network.
Fix the error in the command to connect a container named 'db' to the network 'isolated_net'.
docker network [1] isolated_net dbThe correct command to connect a container to a network is docker network connect <network> <container>.
Fill both blanks to run two containers on the same network 'isolated_net'.
docker run -d --name webapp --network [1] nginx docker run -d --name db --network [2] mysql
Both containers must be on the same network 'isolated_net' to communicate.
Fill all three blanks to create a Docker Compose service for 'webapp' that connects to the 'isolated_net' network.
services:
webapp:
image: nginx
networks:
- [1]
networks:
[2]:
driver: [3]The service uses the 'isolated_net' network, which is defined with the 'bridge' driver in Docker Compose.