To install Jenkins via a Docker container,
Unless you are advanced, I would recommend using the Jenkins blue ocean version
This can be obtained from Docker Hub
Note: This image contains the current Long-Term Support (LTS) release of Jenkins (which is production-ready) bundled with all Blue Ocean plugins and features. This means that you do not need to install the Blue Ocean plugins separately.
Installing
# set container name
export name=jenkins
export hostpath=/path/to/host/src/data
docker run \
--name $name \
-u root \
--rm \
-d \
-p 8080:8080 \
-p 50000:50000 \
--mount type=bind,source="$hostpath",target=/var/jenkins_home \
-v /var/run/docker.sock:/var/run/docker.sock \
jenkinsci/blueocean
Documentations on usage
Post installation
|