Complete the command to run an nginx container exposing port 80.
docker run -d -p [1]:80 nginx
Port 80 is the default HTTP port nginx listens on inside the container. Mapping host port 80 to container port 80 allows access via the host's port 80.
Complete the docker network command to create a user-defined bridge network named 'webnet'.
docker network create [1]'webnet' is the custom network name to create. The default driver is bridge, so no need to specify it here.
Fix the error in the command to connect a container named 'web1' to the 'webnet' network.
docker network [1] webnet web1The correct command to add a container to a network is 'docker network connect'.
Fill both blanks to create a docker network with the bridge driver named 'mynet'.
docker network create --driver [1] [2]
The bridge driver is the default network driver for user-defined networks. 'mynet' is the chosen network name.
Fill all three blanks to run an nginx container named 'webapp' connected to 'mynet' network and expose port 8080 on host.
docker run -d --name [1] --network [2] -p [3]:80 nginx
The container is named 'webapp', connected to 'mynet' network, and host port 8080 is mapped to container port 80.