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.

  • docker-machine:Error with pre-create check: “exit status 126”
  • Spring Cloud Netflix apps running on Docker are killed by the container why?
  • connection between curator4 and elasticsearch running into two containers
  • How to connect to PostgreSQL server that's run on docker
  • run nginx in docker with another application
  • RStudio and Shiny in one dockerfile
  • Am I doing something wrong???

  • How can I expose a Docker container port only to localhost so that it is also accessible via an ssh tunnel?
  • Create database and schema for mySQL in docker
  • docker volumes does not work
  • docker cp does not copy recursively
  • Delete files in offline docker container
  • Where is information from dockerfile located?
  • 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.