Launch Jenkins as a Docker Container with the following command:
docker run -d -u root --name jenkins \
-p 8080:8080 -p 50000:50000 \
-v /root/jenkins_2112:/var/jenkins_home \
All plugins and configurations get persisted to the host (
ssh [email protected]) at _/root/jenkins2112. Port 8080 opens the web dashboard, 50000 is used to communicate with other Jenkins agents. Finally, the image has an alpine base to reduce the size footprint.
You can load the Jenkins' dashboard via the following URL https://[[HOST_SUBDOMAIN]]-8080-[[KATACODA_HOST]].environments.katacoda.com/
The username is
admin with the password the default
On your own system, the password can be found via
docker exec -it jenkins cat /var/jenkins_home/secrets/initialAdminPassword
It may take a couple of seconds for Jenkins to finish starting and be available. In the next steps, you'll use the dashboard to configure the plugins and start building Docker Images.