networking/assign-static-ip/README.md
Lab Environment:
DOCKER_OPTS="--bridge=br0 --ip-masq=false --iptables=false".
Save the file. Assuming that br0 bridge is already configured.
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
pre-up ip addr flush dev eth0
address 192.168.0.249
netmask 255.255.255.0
gateway 192.168.0.1
git clone https://github.com/ajeetraina/docker101
cd docker101/networking/static
docker-compose up -d
==>docker-compose logs
Attaching to ubuntu-container
==>