Docker Jenkins Slaves

You can build Docker images via either Docker itself or via Rocker. They both use the Docker Unix socket mounted inside the container to talk to the parent Docker engine (the one controlling the container).To avoid missing dynamic library dependencies, it was necessary to not only install lxc inside the container, but also mount the Docker executable and the libdevmapper library, as you can see in file docker-jenkins-slave.sh.Here's an excerpt: