New Jenkins Container And Update Jenkins (Docker)

Jim Kang
2 min readJan 12, 2018

let me keep it short, since you’re super busy with your daily tasks. Assuming you’ve logged into your server with bash

  1. Create a directory that will hold your jenkins content (in host)
# I'll keep it as "jenkins", you can use "jenkins_home" if you wishmkdir -p $HOME/jenkins

2. Start your jenkins image

# if you're using other names, replace $HOME/jenkins with your choice
# in case you want to change port, use this
# -e JENKINS_OPTS="--httpPort=80" (remember to change 8080:8080 below to 80:80)
docker container run \
--name jenkins \
-p 8080:8080 -p 50000:50000 \
-v $HOME/jenkins:/var/jenkins_home \
-d \
jenkins

3. Write down the password you see on your screen

4. Open your browser and access http://YOUR-SERVER-IP:8080 and follow the steps

How To Update Jenkins

  1. Right click on the download link and “copy link address”

2. Log in into jenkins container

#using host's root with -u 0

--

--

Jim Kang

love writing bit sized programming memo, acoustic guitarist, proud daddy of 5 and great listener (to my kids)