Skip to content

Instantly share code, notes, and snippets.

@nand0p
Last active April 11, 2017 15:36
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 nand0p/06bf7e62d61e709ab1ddd2d8d132f9f6 to your computer and use it in GitHub Desktop.
Save nand0p/06bf7e62d61e709ab1ddd2d8d132f9f6 to your computer and use it in GitHub Desktop.
docker build /path/to/Dockerfile -t nand0p/jenkins-centos
docker run -d --privileged=true \
--net=host \
--volume /dev/vboxdrv:/dev/vboxdrv \
--volume /var/lib/jenkins:/var/lib/jenkins \
--volume /var/run/docker.sock:/var/run/docker.sock \
--name jenkins-centos nand0p/jenkins-centos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment