Official Jenkins Dockerfile acting strange

I want to use the official jenkins docker image from here :
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.

  • Inserting a conditional RUN statement inside a dockerfile
  • Docker for Windows can't reach the database in Windows 10 enterprise evaluation
  • How to start mysql server in docker container
  • How to execute commands in docker container as part of bash shell script
  • install java successfully using the dockerfile however its says java command not found
  • Ubuntu run service in foreground
  • Am I doing something wrong???

  • Docker commit doesn't save the changed state of my container
  • How to send a curl in Docker Remote API?
  • Container-to-container communication via a host mapped port
  • Installing bundler within Jenkins docker image
  • cannot connect to JMX with Spring Boot and Docker
  • Removing a file from a docker container
  • One Solution collect form web for “Official Jenkins Dockerfile acting strange”

    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
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.