Skip to content

Instantly share code, notes, and snippets.

@waleedsamy
Created October 13, 2017 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waleedsamy/9f4406795cabeaa1550e687eaa816ecb to your computer and use it in GitHub Desktop.
Save waleedsamy/9f4406795cabeaa1550e687eaa816ecb to your computer and use it in GitHub Desktop.
Run docker inside Jenkins container
From jenkins
USER root
RUN apt-get update && apt-get install -y vim nano zsh curl git sudo
docker run --name myjenkins \
           -p 8080:8080 -p 50000:50000 \
          -v /var/run/docker.sock:/var/run/docker.sock \
          -v $PWD/docker:/usr/bin/docker \
          -v $PWD/j:/var/jenkins_home \
          jj
          ```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment