Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

docker jenkins

# Get the Jenkins Docker Image and Jenkins is now running on port 8080
docker run -d -v jenkins_home:/var/jenkins_home -p 8080:8080 -p 50000:50000 --restart=on-failure jenkins/jenkins:lts-jdk11

# You'll need the admin password 
docker ps -a # copy the container_id 
docker exec -it {container_id} /bin/bash
cat /var/jenkins_home/secrets/initialAdminPassword
 
PREVIOUS NEXT
Tagged: #docker #jenkins
ADD COMMENT
Topic
Name
1+3 =