Last active
July 12, 2021 23:43
-
-
Save dan82840/3882da3f505ab700a8250a2ae2e3d421 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
VERSION=2.194 | |
## Use port 8080 to connect, 10.5.1.101 company DNS server | |
docker run -d \ | |
-p 8080:8080 -p 50000:50000 \ | |
--name=jenkins-$VERSION \ | |
--restart always \ | |
--dns=10.5.1.106 \ | |
-v /etc/timezone:/etc/timezone:ro \ | |
-v /etc/localtime:/etc/localtime:ro \ | |
-v /opt/jenkins_home:/var/jenkins_home jenkins/jenkins:$VERSION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment