Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

run jenkins docker

docker run 
--name jenkins 
-p 8080:8080 
-p 50000:50000 
-v jenkins_home:/var/jenkins_home 
-d 
-v /var/run/docker.sock:/var/run/docker.sock 
-v $(which docker):/usr/bin/docker 
jenkins/jenkins:jdk17-preview 
Comment

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
Comment

docker jenkins

docker run -d -v jenkins_home:/var/jenkins_home -p 8080:8080 -p 50000:50000 jenkins/jenkins:lts-jdk11
Comment

run Jenkins docker image

docker run -p 8080:8080 -p 50000:50000 -v ~/jenkins_home:/var/jenkins_home jenkins/jenkins:lts
Comment

jenkins as docker container

docker run --name jenkins-docker --rm --detach 
  --privileged --network jenkins --network-alias docker 
  --env DOCKER_TLS_CERTDIR=/certs 
  --volume jenkins-docker-certs:/certs/client 
  --volume jenkins-data:/var/jenkins_home 
  --publish 2376:2376 
  docker:dind --storage-driver overlay2
Comment

PREVIOUS NEXT
Code Example
Shell :: git push functions code 
Shell :: pip install requireents 
Shell :: .local ubuntu 
Shell :: How to count number of files in each directory 
Shell :: git remove ignored files 
Shell :: conda install python image library 
Shell :: githum readme bold 
Shell :: git add all files command 
Shell :: How to install pymol 
Shell :: how to push local code to gitlab 
Shell :: Simulate keys with powershell 
Shell :: iptables remove docker rules 
Shell :: how to un zip a file in linux command line 
Shell :: bash compare two files 
Shell :: ionic social sharing 
Shell :: npm install --save-dev @angular/cli@latest 
Shell :: disable iptables debian 
Shell :: htaccess hide directory listing 
Shell :: error: src refspec main does not match any error: failed to push some refs to 
Shell :: kill process on linux 
Shell :: move multiple files with a single mv command 
Shell :: add ssh keys to github 
Shell :: download post man in linux 
Shell :: bash upgrade cmake (From Source) 
Shell :: docker image rm image without tag 
Shell :: bash script command not found 
Shell :: how to reset and change remote url in git 
Shell :: finda java home 
Shell :: change time linux 
Shell :: read string by string in file in linux 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =