Last active
September 12, 2019 03:04
-
-
Save dan82840/432580a6b4428b27ad175801d72b3ef3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.60.3 | |
## 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.101 \ | |
-v /etc/timezone:/etc/timezone:ro \ | |
-v /etc/localtime:/etc/localtime:ro \ | |
-v /opt/jenkins_home:/var/jenkins_home jenkins:$VERSION | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment