1. Create the following directory, assume you are at your home directory:
$ mkdir -p ~/jenkins/jenkins_home
2. Run the following command to start up the git server:
docker run -d -p 9090:8080 -p 50000:50000 \ --restart unless-stopped \ -v ~/jenkins/jenkins_home:/var/jenkins_home \ --name jenkins jenkins/jenkins:ltsNow your server is running at the port 9090. Use the following url to access its UI.
http://<hostip>:9090
The first time access it, you will have to find the initial admin pw and do the setup. All the jenkins files will be at ~/jenkins/jenkins_home
You can then add that host as the jenkins slave to start run your jobs.
No comments:
Post a Comment