docker

(โ˜… 7,612)

Docker official jenkins repo

  • .git-blame-ignore-revs
  • .gitignore
  • .gitmodules
  • .hadolint.yml
  • CHANGELOG.md
  • CONTRIBUTING.md
  • docker-bake.hcl
  • docker-bake.override.json
  • HACKING.adoc
  • jdk-download-url.sh
  • jdk-download.sh
  • jenkins-plugin-cli.ps1
  • jenkins-plugin-cli.sh
  • jenkins-support
  • jenkins-support.psm1
  • jenkins.io-2026.key
  • jenkins.ps1
  • jenkins.sh
  • Jenkinsfile
  • LICENSE.txt
  • make.ps1
  • Makefile
  • README.md
  • SECURITY.md
  • tini_pub.gpg

๐Ÿš€ Installation Guide

1. Get the code
git clone https://github.com/jenkinsci/docker

Downloads the entire project code from GitHub to your computer.

cd docker

Moves into the project folder you just downloaded.

2. Docker

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker run -p 8080:8080 -p 50000:50000 --restart=on-failure jenkins/jenkins:lts-jdk21

Runs the built image as an actual container.

docker run -p 8080:8080 -p 50000:50000 --restart=on-failure -v jenkins_home:/var/jenkins_home jenkins/jenkins:lts-jdk21

Runs the built image as an actual container.

docker run -d -v jenkins_home:/var/jenkins_home -p 8080:8080 -p 50000:50000 --restart=on-failure jenkins/jenkins:lts-jdk21

Runs the built image as an actual container.

docker exec <jenkins_container_id_or_name> cat /var/jenkins_home/secrets/initialAdminPassword

Type this command into your terminal and run it.

docker run --name myjenkins -p 8080:8080 -p 50000:50000 --restart=on-failure --env JAVA_OPTS=-Dhudson.footerURL=http://mycompany.com jenkins/jenkins:lts-jdk21

Runs the built image as an actual container.

โœ… Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.

Pulled directly from this repo's README.

3. Make

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make

Compiles the code based on the generated build configuration to produce an executable.

โœ… If it finishes without errors, it worked. Try running the generated executable directly.
// repository documentation