This example runs Jenkins LTS with persistent state.
See Docker installation: Docker
docker run -d \
--name jenkins \
--restart unless-stopped \
-p 8080:8080 \
-p 50000:50000 \
-v jenkins_home:/var/jenkins_home \
jenkins/jenkins:lts
Deploying Jenkins in containers for production? Our consulting covers:
Get expert help: office@linux-server-admin.com | Contact Page