Skip to content

Instantly share code, notes, and snippets.

@dan82840
Last active July 12, 2021 23:43
Show Gist options
  • Save dan82840/3882da3f505ab700a8250a2ae2e3d421 to your computer and use it in GitHub Desktop.
Save dan82840/3882da3f505ab700a8250a2ae2e3d421 to your computer and use it in GitHub Desktop.
#!/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