How to assign static ip in docker for Windows for linux container? I want to assign static ip to my docker container in docker for Window for linux container.
I have achieved same in linux container using macvlan but macvlan doesn't support for docker for Windows.
Does any one have work around how can i assign static ip to my linux container so it directly expose to outside world without port mapping.
I have also tried to use transperent driver in window container with LCOW enabled but as my application need privileged and bind mount to cgroup window container can not be used.
Note:I have specific scenario to use static ip as port mapping is not working for my application.
You need create user define network

docker network create -d transparent --subnet=10.1.1.0/24 --gateway=10.1.1.1 TransparentNet3


Then you need run container with key --ip

docker run -it --name nano03 --network=TransparentNet3 --ip 10.1.1.1 someimage:sometag