docker

(★ 7,612)

Docker official jenkins repo

File Explorer

  • .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

docker
Prerequisites

Setup Steps

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

Run the Jenkins Docker container with a persistent volume attached.

Key Commands

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

Creates and runs a container from the Jenkins Docker image.

docker exec myjenkins cat /var/jenkins_home/secrets/initialAdminPassword

Retrieves the initial admin password from inside the running Jenkins container.

It is recommended to use Docker volumes instead of host bind mounts to avoid file permission issues.

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

docker compose up

View Details ▼

Start and run Docker services defined in a Compose file.

docker compose up

Start all services defined in the docker-compose file:

docker compose up {{[-d|--detach]}}

Start services in the background (detached mode):

docker compose up --build

Start services and rebuild images before starting:

🔍

docker compose

View Details ▼

Run and manage multi container Docker applications.

docker compose ps

List all running containers:

docker compose up {{[-d|--detach]}}

Create and start all containers in the background using a `docker-compose.yml` file from the current directory:

docker compose up --build

Start all containers, rebuild if necessary:

🔍

docker cp

View Details ▼

This command is an alias of `docker container cp`.

tldr docker container cp

View documentation for the original command:

🔍

docker exec

View Details ▼

This command is an alias of `docker container exec`.

tldr docker container exec

View documentation for the original command:

🔍

docker pull

View Details ▼

This command is an alias of `docker image pull`.

tldr docker image pull

View documentation for the original command:

🔍

docker run

View Details ▼

This command is an alias of `docker container run`.

tldr docker container run

View documentation for the original command:

# Project Badges

  • Docker Stars Docker Stars Visit
  • Docker Pulls Docker Pulls Visit
  • Join the chat at https://gitter.im/jenkinsci/docker Join the chat at https://gitter.im/jenkinsci/docker Visit
// repository documentation