简体   繁体   English

官方Jenkins Dockerfile表现异常

[英]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. 我想从这里使用官方的jenkins docker镜像: https//github.com/jenkinsci/docker/tree/62de121e41ddd92ef34e9999162932334334b05f0d7并进一步对其进行自定义。

When i just launch a container with docker run -d -p 8080 jenkins , it plays ok. 当我使用docker run -d -p 8080 jenkins启动容器时,它docker run -d -p 8080 jenkins正常。 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? 您是否在Windows上使用Docker Toolbox?

If yes, be carreful with end of line different between Windows and Linux . 如果是,请小心Windows和Linux之间的不同行尾

Try to clone repository like this 尝试像这样克隆存储库

git clone myrepo --config core.autocrlf=false

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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