
docker --version
If it shows a version number → Docker is installed successfully.
docker pull jenkins/jenkins:lts
lts → Long-Term Support version (recommended for production)
docker run -d -p 8092:8080 -p 50002:50000 --name myappjenkins jenkins/jenkins:lts
| Command | Purpose |
|---|---|
| -d | Run as background service |
| -p 8092:8080 | Jenkins web UI |
| -p 50002:50000 | Jenkins agent communication |
| --name myjenkins | Name for container |
docker ps
docker exec -it myappjenkins cat /var/jenkins_home/secrets/initialAdminPassword
1d1b12d3aece4c659540f5ef6921ae58
Copy the displayed password and paste it into the browser.
| Field | Example |
|---|---|
| Username | admin |
| Password | jenkins@123 |
| Full Name | Your name |
| your email |











