Score:0

Create a dummy interface inside a Windows container

bw flag

I am trying to isolate the networking inside a Windows container, which is very easy using --network none.

The problem comes when I have two threads in the same process trying to communicate each other using multicast through a network interface, so this is the reason why I need to create an interface inside the container. The objetive of using network isolation is to avoid sending noise to the same process running in parallel inside another container.

So in other words, I need the equivalent to these commands in Windows:

ip link add dummy0 type dummy
ip addr add 10.0.0.1/24 dev dummy0
ip link set dev dummy0 multicast on
ip link set dummy0 up

I haven't found a tool to create network adapters on Windows so far.

Score:0
id flag

This is an interesting use case. By default, Windows containers use the NAT network. I think your case would benefit from using some overlay. That way, you can have multiple networks and direct IP addresses from each network to each container. Does that helps? There are more details here: https://learn.microsoft.com/en-us/virtualization/windowscontainers/container-networking/network-drivers-topologies

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.