docker pull bndynet/jenkins
Below 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 a persistent volume (recommended):
docker run --name my-jenkins -p 8080:8080 -p 50000:50000 [-v /your/home:/var/jenkins_home] \
-d \
-v /var/run/docker.sock:/var/run/docker.sock \
--restart unless-stopped \
--user root \
bndynet/jenkins
docker exec -it my-jenkins bash
-
Initial Admin Password: /var/jenkins_home/secrets/initialAdminPassword
-
Forgot Password or Reset:
- Stop the Jenkins service
- Open the
config.xml
file- Find this
<useSecurity>true</useSecurity>
and change it to<useSecurity>false</useSecurity>
- Start Jenkins service