This directory contains a Dockerfile and supporting files for creating a docker image that runs OpenVSwitch on CentOS.
- Obtain or compile an RPM of OpenVSwitch. The directions in ovs/INSTALL.Fedora work just fine
- Place the resulting RPM in in this directory
- Edit the OVSRPM environment variable in the Dockerfile to be the name of your RPM
- Run docker build on this directory
The manager and controller connections are managed via an environment variable, MODE, which must be passed in when the container is spun up. This MODE may have one of the following four forms:
- MODE=none - will result in no manager or controller being set
- MODE=ptcp - except passive manager tcp conntections
- MODE=tcp - set the manager and controller IPs to the value of the default route
- MODE=tcp:10.10.1.1 manager and controller IPs to the IP specified. Generally speaking, you will not need this option
To run the docker image say, "sudo docker run -itd -e MODE=none --cap-add NET_ADMIN name_of_your_image"
This work is largely based on that of Dave Tucker: https://github.com/dave-tucker/docker-ovs Thanks, Dave.