This provides a container for doing OpenCV development
docker build -t obedmr/opencv .
docker pull obedmr/opencv
# Allow docker container display X applications
xhost local:root
# Start OpenCV container in --privileged mode
docker run --rm -it --privileged \
-v /tmp/.X11-unix/:/tmp/.X11-unix \
-e DISPLAY=$DISPLAY obedmr/opencv bash