Reputation: 140
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
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
Reputation: 140
finnally i have resloved with add an environment parameter with docker command
-e JENKINS_OPTS="--httpPort=80"
Upvotes: 9