简体   繁体   中英

Official Jenkins Dockerfile acting strange

I want to use the official jenkins docker image from here : https://github.com/jenkinsci/docker/tree/62de121e41ddd92ef34e9999162932334b05f0d7 and further customize it.

When i just launch a container with docker run -d -p 8080 jenkins , it plays ok. But when I download all the project and build it locally [as it is,without changing anything], when I launch a container it exits right after launch.

Am I doing something wrong???

are you're using Docker Toolbox on Windows?

If yes, be carreful with end of line different between Windows and Linux .

Try to clone repository like this

git clone myrepo --config core.autocrlf=false

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM