Hi,
I wish to create a Windows container with a static ip in my lan.
I have used these commands:
docker network create -d transparent --subnet=192.168.1.0/24 --gateway=192.168.1.254 tnet
docker run -it --name fixedhost --network tnet --ip 192.168.1.111 mcr.microsoft.com/windows:1809
But the container ip is:
C:>ipconfig
Windows IP Configuration
Ethernet adapter Ethernet:
Connection-specific DNS Suffix . : localdomain
Link-local IPv6 Address . . . . . : fe80::9d12:98dc:1c57:26cb%4
IPv4 Address. . . . . . . . . . . : 192.168.164.131 --> not in my network
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.254
192.168.164.2
I don’t understand why.
Can you help me?
Thanks, regards. Stefano.