Docker Community Forums

Share and learn in the Docker community.

How to assign static ip in docker for Windows for linux container?


(Chetanmen) #1

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.