Nginx反向代理jenkins服务,实现https域名访问 {#articleContentId}
--env JENKINS_OPTS="--prefix=/jenkins"
如下:
jenkinsstart.sh
#!/bin/bash
docker run -u root -d \
-p 8098:8080 -p 8097:50000 \
-v /root/workspace/jenkins_home/workspace/:/var/jenkins_home/ \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /usr/bin/docker:/usr/bin/docker \
-v /usr/local/java/jdk-17.0.1:/usr/local/java \
-v /usr/local/maven/apache-maven-3.9.6:/usr/local/maven \
-e JAVA_OPTS="-Dorg.apache.commons.jelly.tags.fmt.timeZone='Asia/Shanghai" \
-e JENKINS_OPTS="--prefix=/jenkins" \
--name jenkins jenkins/jenkins:2.415
http://10.0.0.203:8098/jenkins