How to fix static IP for container?
First I run the container and check it, it says
"NetworkSettings": { "IPAddress": "XX.XX.206.98", "IPPrefixLen": 27, "Gateway": "XX.XX.206.105", "Bridge": "public", "PortMapping": null, "Ports": {} },
then i stop it and restart it he likes
"NetworkSettings": { "IPAddress": "XX.XX.206.99", "IPPrefixLen": 27, "Gateway": "XX.XX.206.105", "Bridge": "public", "PortMapping": null, "Ports": {} },
As you can see, this has changed. I just created a bridge called public and started adding docker with -b=public . How to set a static IP address for a container?
docker lxc ip
user3204937
source share