title: Jenkins inside container
body: <p>Before someone shouts at me saying that Jenkins has a official docker container, I would like to say that I'm playing/testing anything that I can think of.</p>
  
  <p>I have a container(php:7.2-apache) where I'm installing Jenkins and I have a problem starting the service to run Jenkins.</p>
  
  <p>I have tried to start the service with <code>CMD service jenkins start</code> but when I run the container <code>docker-compose up -d</code> the log show me this and after this the container is stooped with exit code 0</p>
  
  <blockquote>
    <p>test_1  | Correct java version found
    test_1  | Starting Jenkins Automation Server: jenkins.</p>
  </blockquote>
  
  <p>Could some one help me with this?</p>