Jenkins with DooD (Docker outside of Docker)
1.6K
Jenkins with DooD (Docker outside of Docker)
Based on Jenkins 2.xA Jenkins container capable of using Docker, so you can Docker while you Docker.
Long story short, DooD (as in dude) is the opposite of DinD and whereas the latter includes a whole Docker installation inside of it, the former just uses its underlying host's Docker installation.
docker pull merapar/jenkins-container
git clone https://github.com/merapar/Jenkins-container.git
cd Jenkins-container
docker build -t jenkins-container .
docker-engine version at build time through the use of the docker_version build argument, like so:# Default docker_version is 17.06.1~ce-0~debian
docker build --build-arg docker_version=17.06.1~ce-0~debian -t jenkins-container .
docker-compose up
docker run -d -v /var/run/docker.sock:/var/run/docker.sock \
-v /path/to/your/jenkins/home:/var/jenkins_home \
-p 8080:8080 \
merapar/jenkins-container
privileged mode neededprivileged mode, it does not make it any safer because it can do docker things directly on the host, so you have to be aware of thisCopyright (c) 2015
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Content type
Image
Digest
Size
882.3 MB
Last updated
about 7 years ago
docker pull merapar/jenkins-container