There are many articles out there on the internet explaining how to use the official Jenkins Docker image, or how to run Jenkins using Docker Compose, and this repository is nothing more than my twist on the concept.
The BlueOcean and Docker Pipeline plugins come preinstalled as part of the Jenkins image.
You need to have Docker and Docker Compose installed on your system.
- Copy the .env.samplefile to.envand set a host port after the equal sign
- Run docker compose up -d
- Open localhost:<your_specified_port>in your browser and start the Jenkins setup- Docker will copy the contents of the /var/jenkins_homedirectory from the Jenkins server container to./jenkins_home/. If you open this directory during setup and navigate to./jenkins_home/secrets/initialAdminPasswordyou will find your initial administrator password
 
- Docker will copy the contents of the 
- If you want to use Jenkins CLI features, you can simply log into the Jenkins server container by
running docker exec -it jenkins /bin/bash