zhang yongchao
zhang yongchao

Reputation: 140

How to configure jenkins run on port 80 use docker?

i use below command , but it doesn't work, we must use --ip to pass ip to pass given ip to docker docker run -p 80:80080 --ip xx.xx.xx.xx jenkins

Upvotes: 1

Views: 12529

Answers (3)

Ion Scorobogaci
Ion Scorobogaci

Reputation: 165

docker run --name jenkinsci -p 8081:8080 jenkins/jenkins:lts

If 8080 is already in use, you can use 8081 but forward it to 8080, as jenkins starts on 8080

-p 8081:8080

Upvotes: 0

Daniel
Daniel

Reputation: 31

docker run -p 80:8080 -d jenkins/jenkins:latest

Upvotes: 3

zhang yongchao
zhang yongchao

Reputation: 140

finnally i have resloved with add an environment parameter with docker command -e JENKINS_OPTS="--httpPort=80"

Upvotes: 9

Related Questions