docker icon indicating copy to clipboard operation
docker copied to clipboard

Issue running image derived from jenkins/jenkins

Open oneill-c opened this issue 8 years ago • 4 comments

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

oneill-c avatar May 02 '18 10:05 oneill-c

Does anyone have any insight on this or experience successfully building their own image from this?

oneill-c avatar May 03 '18 08:05 oneill-c

@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!

batmat avatar May 03 '18 13:05 batmat

this must be an issue with your docker instance, there are multiple derived images

carlossg avatar May 03 '18 13:05 carlossg

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.

oneill-c avatar May 03 '18 22:05 oneill-c