Challenge - 5 Problems
Docker Jenkins Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
Jenkins Docker Container Startup Output
You run the command to start Jenkins in Docker:
What output will you see first in the Docker logs indicating Jenkins is ready to use?
docker run -p 8080:8080 -p 50000:50000 jenkins/jenkins:ltsWhat output will you see first in the Docker logs indicating Jenkins is ready to use?
Jenkins
docker run -p 8080:8080 -p 50000:50000 jenkins/jenkins:lts
Attempts:
2 left
💡 Hint
Look for the file path where Jenkins stores the initial admin password.
✗ Incorrect
When Jenkins starts in Docker for the first time, it outputs the location of the initial admin password file. This is shown as 'Jenkins initialAdminPassword: /var/jenkins_home/secrets/initialAdminPassword'.
❓ Configuration
intermediate2:00remaining
Correct Docker Run Command for Jenkins with Volume
Which Docker command correctly runs Jenkins with persistent data stored on the host at
/home/user/jenkins_home?Attempts:
2 left
💡 Hint
Remember the format for Docker volume mapping is host_path:container_path.
✗ Incorrect
Option C correctly maps the host directory to the Jenkins home directory inside the container, ensuring data persists outside the container.
❓ Troubleshoot
advanced2:00remaining
Jenkins Docker Container Fails to Start
You try to start Jenkins with:
The container exits immediately. What is the most likely cause?
docker run -p 8080:8080 jenkins/jenkins:ltsThe container exits immediately. What is the most likely cause?
Attempts:
2 left
💡 Hint
Check if another service is using the port Jenkins needs.
✗ Incorrect
If port 8080 is busy, Docker cannot bind it and the container exits immediately with an error.
🔀 Workflow
advanced3:00remaining
Steps to Upgrade Jenkins Docker Container
What is the correct sequence to upgrade Jenkins running in Docker to a newer version without losing data?
Attempts:
2 left
💡 Hint
You must stop the old container before starting a new one with the updated image.
✗ Incorrect
First stop the old container to free resources, then pull the new image, start a new container with the existing data volume, and finally verify everything works.
✅ Best Practice
expert2:30remaining
Secure Jenkins Docker Installation
Which practice best improves security when running Jenkins in Docker?
Attempts:
2 left
💡 Hint
Think about how to protect passwords and tokens in Docker.
✗ Incorrect
Using Docker secrets or environment variables keeps sensitive data out of code and images, reducing risk of leaks.