Skip to content

Instantly share code, notes, and snippets.

@gmolveau
Created January 8, 2021 16:03
Show Gist options
  • Select an option

  • Save gmolveau/5cd751a59d72f6fce5e6006f0e05a550 to your computer and use it in GitHub Desktop.

Select an option

Save gmolveau/5cd751a59d72f6fce5e6006f0e05a550 to your computer and use it in GitHub Desktop.
Dockerized jenkins build docker images
docker build -t jenkinsdocker .
docker run -d --name jenkins -v jenkins_home:/var/jenkins_home -p 8080:8080 -p 50000:50000 -v /var/run/docker.sock:/var/run/docker.sock jenkinsdocker
FROM jenkins/jenkins:lts
# yes it runs as root, sadly the only way I found to make it work
USER root
RUN apt-get -qq update && apt-get -qq -y install curl && apt-get clean
RUN curl -sSL https://get.docker.com/ | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment