Skip to content

Instantly share code, notes, and snippets.

@zxkane
Created July 22, 2015 10:44
Show Gist options
  • Save zxkane/ce20fa3c7e3420d68d6c to your computer and use it in GitHub Desktop.
Save zxkane/ce20fa3c7e3420d68d6c to your computer and use it in GitHub Desktop.
launch jenkins docker container
docker stop vme-jenkins
docker rm vme-jenkins
export HOST_IP=`/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'`
docker run --name vme-jenkins -p $HOST_IP:8080:8080 -p 50000:50000 -e "JAVA_OPTS=-Duser.timezone=Asia/Hong_Kong" -v /home/zxkane/jenkins:/var/jenkins_home -d jenkins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment