Assign a static ip address to a container using following commands.
docker network create —subnet=172.18.0.0/16 mynet123
docker run —net mynet123 —ip 172.18.0.22 –it ubuntu bash
Assign a static ip address to a container using following commands.
docker network create —subnet=172.18.0.0/16 mynet123
docker run —net mynet123 —ip 172.18.0.22 –it ubuntu bash