This utility is an all-in-one method to integrate docker infrastructure to networks using RIP-based routing.
There are many ways to achieve arbitrary network configuration with Docker, but most of them make using Docker API impossible, as they require pre- and post-actions, which must be done locally. The main goals of this utility is to be as transparent as possible, require minimum configuration allow users to work with standard Docker API.
To install the dependencies, you can do:
sudo pip install -r requirements.txt
As the utility will modify routing, root access is required.
sudo ./drip.py --next-hop <this-hosts-ip-address> --neighbor <rip-server>
If you now try to start a docker container, you will see that the utility sends notifications and patches network routes to achieve desired configuration.
To make it easier, you can run drip itself in Docker in privileged mode.
First, build an image:
docker build -t drip .
Then run it:
docker run --rm -t -i --net=host --pid=host --privileged -v /var/run/docker.sock:/var/run/docker.sock -e DRIP_NETWORKS=bridge drip
Note:
Content type
Image
Digest
Size
255.9 MB
Last updated
over 9 years ago
docker pull tarantool/drip