Docker - Networking - multichoice questions

Given the below executed commands:

docker network create mynet5
docker run --name mynginx --network mynet5 nginx

Answer the below 3 questions.

Question 1

What is the networking driver used by the network mynginx is connected to?

Question 2

You are told that the container's IP address is: 172.18.0.2. Choose the correct sentence(s).

The mynginx container:

Question 3

The mynginx container was detached from mynet5 network and attached to the default bridge network. Choose the correct sentence(s).

The mynginx container:

Question 4

What is the name of the network interface of the default bridge network which Docker is shipped with?

Hint: ip address

Question 5

Given the following running container:

docker run -it busybox /bin/sh

DNS queries requested from within this container:

Question 6

Containers can have multiple IP addresses:

Question 7

In order to execute the following command successfully:

docker run -p 8080:80 my-app

Given the following running container:

docker run --network host redis

Answer the below 4 questions

Question 8

Running the ip address command from within the container (you can install the command by apt update && apt install iproute2):

Question 9

Choose the correct sentence(s):

Question 10

The user tries to run another redis container as follows:

docker run --network host redis

Why is the command failed?

Question 11

Assume port 6378 is bound to another process in the host machine, while port 6379 is free. What would happen if instead of running the original command, the user would have run:

docker run -p 6378:6379 --network host redis