Run Jenkins in Docker with more Docker.
5.3K
Run Jenkins in Docker with more Docker.
Allow Jenkins to spawn Docker containers when it builds. And keep the convenience of getting Jenkins via Docker.
Based on jenkins/jenkins:lts, and is automatically rebuilt by Docker
Hub every time a new lts version is pushed to the jenkins/jenkins
repo.
Install Docker.
curl https://get.docker.com | sh
sudo usermod -aG docker $(id -un)
sudo su - $(id -un) # or log out, then log in again
sudo systemctl enable docker
sudo systemctl start docker
This will install and start a Docker container named jenkins, which will
auto-start on boot.
curl -s https://raw.githubusercontent.com/hugojosefson/jenkins-dockerception/master/install-jenkins-dockerception | bash
Check the log for initial login password, and copy it:
docker logs -f jenkins
Continue Jenkins setup at http://localhost:8080/
You may optionally build the jenkins-dockerception image yourself.
./docker-build
Content type
Image
Digest
sha256:e43fd2f97…
Size
296.3 MB
Last updated
about 4 years ago
docker pull hugojosefson/jenkins-dockerception:lts