Docker Community Forums

Share and learn in the Docker community.

Docker for Windows vs Docker on Linux


(Nexusguy59) #1

Hello Everyone,

I am new to Docker for Windows. I have a question pertaining to docker create network command. In linux I was able to do this at the commandline:
docker network create -d macvlan --subnet 192.168.xxx.0/24 --gateway=192.168.xxx.1xx -o parent=enp6s0f0 CFSEXT
to define my network so that I could create containers in that network segment. Notice the parent=enp6s0f0 <- This is the name of the physical nic. What would be the name of the nic in Windows? Do I define the network via powershell in the same way?

Thank you for your help in advance,
Michael


(Nexusguy59) #2

I answered my own question you can close this or resolve it.
docker network create -d transparent -o com.docker.network.windowsshim.interface=(INTERFACE NAME) (NETWORK NAME)


(Dockerforguoc) #3

you are funny,bro,hahahaha