Create a Docker Network for Windows Server Containers | AZ-800 Exam | Microsoft

Create a Docker Network for Windows Server Containers

Question

You have a server named Server1 that hosts Windows containers.

You plan to deploy an application that will have multiple containers. Each container will be on the same subnet. Each container requires a separate MAC address and IP address. Each container must be able to communicate by using its IP address.

You need to create a Docker network that supports the deployment of the application.

Which type of network should you create?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B

https://docs.microsoft.com/en-us/virtualization/windowscontainers/container-networking/network-drivers-topologies

To support the deployment of multiple containers on the same subnet, each with a separate MAC and IP address and the ability to communicate using their IP address, you need to create a Docker network of type "I2bridge."

Explanation: A Docker bridge network allows communication between containers connected to the same bridge network, using IP addresses. By default, a Docker container is connected to the bridge network named "bridge" when it is started.

To deploy an application with multiple containers, you can create a user-defined bridge network that enables communication between containers connected to the same bridge network. With a user-defined bridge network, you can assign a static IP address to each container.

The "I2bridge" (also known as "IPvlan") driver is a type of Docker bridge network that allows each container to have a separate MAC and IP address, while still being on the same subnet. This driver uses a technique called "MACVLAN," which allows you to create virtual interfaces for each container, each with its own MAC address.

Therefore, to support the deployment of an application with multiple containers, each requiring a separate MAC and IP address, you should create an "I2bridge" network.

Option A (NAT) is not the correct answer because it is used to enable containers to access the internet, and not to communicate with each other on the same subnet.

Option B (transparent) is not the correct answer because it is used to connect containers to an external network and not to a user-defined bridge network.

Option D (I2tunnel) is not the correct answer because it is used to connect two or more Docker networks together over a single, secure tunnel, and not to create a user-defined bridge network.