Complete the command to create a Docker container using the default network driver.
docker run --rm -it --network [1] alpine shThe default Docker network driver is bridge. It creates a private internal network on the host.
Complete the command to run a container that shares the host's network stack.
docker run --rm -it --network [1] nginxThe host network driver makes the container use the host's network directly, without isolation.
Fix the error in the command to create a multi-host Docker network.
docker network create -d [1] mynetThe overlay driver allows containers on different Docker hosts to communicate securely.
Fill both blanks to create a container with no network access.
docker run --rm -it --network [1] alpine sh -c "ping [2]"
The none network driver disables networking for the container. Pinging 127.0.0.1 tests localhost inside the container.
Fill all three blanks to create an overlay network and run a container attached to it.
docker network create -d [1] my_overlay_net && docker run --rm -it --network [2] alpine sh -c "ip addr show [3]"
Create an overlay network named my_overlay_net. Then run a container attached to that network and show the IP address of interface eth0.