Skip to content

Instantly share code, notes, and snippets.

@dan82840
Last active September 12, 2019 03:04
Show Gist options
  • Save dan82840/432580a6b4428b27ad175801d72b3ef3 to your computer and use it in GitHub Desktop.
Save dan82840/432580a6b4428b27ad175801d72b3ef3 to your computer and use it in GitHub Desktop.
#!/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