Issue running image derived from jenkins/jenkins
Issues and Contributing
Please note that only issues related to this Docker image will be addressed here.
- If you have Docker related issues, please ask in the Docker user mailing list.
- If you have Jenkins related issues, please ask in the Jenkins mailing lists.
- If you are not sure, then this is probably not the place to create an issue and you should use any of the previously mentioned mailing lists.
If after going through the previous checklist you still think you should create an issue here please provide:
Docker commands that you execute
Build my image
docker build --rm -t my-private-registry/my-jenkins:latest -f ./Dockerfile . --no-cache
Push to my private registry
docker push my-private-registry/my-jenkins:latest
Run my image
docker run -d --name test-jenkins -p 8080:8080 -v jenkins_home:/var/jenkins_home my-private-registry/my-jenkins:latest
Actual result
Error opening input file /cert
/cert: No such file or directory
Container does not start.
Expected outcome
Container should start.
Have you tried a non-dockerized Jenkins and get the expected outcome?
No I have not tried non-dockerized Jenkins
Output of docker version
Docker version 18.03.1-ce, build 9ee9f40
Other relevant information
This is an image that derives from jenkins/jenkins and all I have in the Dockerfile of my image is:
FROM jenkins/jenkins
Does anyone have any insight on this or experience successfully building their own image from this?
@mcpolandc Did that many many times in the past, not very recently but I don't believe yet it does not work. For instance under https://github.com/batmat/jez/tree/master/jenkins-master
Any chance you can expose an expunged version of your Dockerfile that fails being run, so that it can be reproduced and everybody saves time? Without this, I think we're all going to loop for much longer.
Thanks!
this must be an issue with your docker instance, there are multiple derived images
Hi @batmat @carlossg. Thank you for your replies! It turns out that a local image that I had pulled in the past was corrupted in some way. I found this out becuase I decided restore docker factory settings thus forcing it to pull my image from scratch. I no longer got this error!! 🎉
Apologies for any time wasted and keep up the good work.