Created
February 9, 2016 19:51
-
-
Save benton/0b0c8601585d7e30861b to your computer and use it in GitHub Desktop.
Docker-enabled Jenkins image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM jenkins:1.642.1 | |
USER root | |
# install docker | |
RUN wget -qO- https://get.docker.com/gpg | apt-key add - | |
RUN wget -qO- https://get.docker.com/ | sh | |
RUN usermod -aG docker jenkins && usermod -aG users jenkins | |
USER jenkins |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Build:
docker build --tag=dtest .
Run
docker run --rm -it --entrypoint=docker -v /var/run/docker.sock:/var/run/docker.sock dtest version
Output: