Install docker
Install docker-compose
https://docs.docker.com/compose/install/
Make directory
/app/jenkins
Mkdir docker-compose-jenkins.yml
Run command
docker-compose -f docker-compose-jenkins.yml up -d
Create nginx config file like jenkins.conf
on /etc/nginx/conf.d
Check jenkins
docker ps
Accessing the Jenkins Docker container
docker container exec -it jenkins bash
Accessing the Jenkins console log through Docker logs
docker container logs jenkins
To Unlocking Jenkins
Find init password
Go To inside docker
docker container exec -it jenkins bash
Write
vi /var/jenkins_home/secrets/initialAdminPassword
Open Jenkins
type initial password