Docker Community Forums

Share and learn in the Docker community.

Static IP docker container

Hi Guys I need setup bridge static IP in docker container, So pls help me out how to assign static IP in my docker container.


docker network create --subnet= customNet
docker run -ti .... --net customNet --ip ....

I need to create first network then I can able to assign static IP but I n my case i want to setup bridge network IP, So is it possible.

Am I understanding it correctly that you want a container to get an ip from the DHCP?

because “docker network create --subnet= customNet”, would create a local bridge

This post was flagged by the community and is temporarily hidden.