jenkinscidocker | docker pull jenkins jenkins lts
TheJenkinsContinuousIntegrationandDeliveryserveravailableonDockerHub[1].ThisisafullyfunctionalJenkinsserver.https://jenkins.io/[2].dockerrun-p8080:8080-p50000:50000--restart=on-failurejenkins/jenkins:lts-jdk17NOTE:readthesectionConnectingagents[3]belowfortheroleofthe50000portmapping.Thiswillstoretheworkspacein/var/jenkins_home.AllJenkinsdatalivesinthere-includingpluginsandconfiguration.Youwillprobablywanttomakethatanexplicitvolumesoyoucanmanageitandattachtoanothercontainerforupgrades:dockerr...
The Jenkins Continuous Integration and Delivery server available on Docker Hub[1].
This is a fully functional Jenkins server. https://jenkins.io/[2].
docker run -p 8080:8080 -p 50000:50000 --restart=on-failure jenkins/jenkins:lts-jdk17NOTE: read the section Connecting agents[3] below for the role of the 50000 port mapping.
This will store the workspace in /var/jenkins_home. All Jenkins data lives in there - including plugins and configuration. You will probably want to make that an explicit volume so you can manage it and attach to another container for upgrades :
docker run -p 8080:8080 -p 50000:50000 --restart=on-failure -v jenkins_home:/var/jenkins_home jenkins/jenkins:lts-jdk17This will automatically create a jenkins_home docker volume[4] on the host machine. Docker volumes retain their content even when the container is stopped, started, or deleted.