title: Jenkins Docker container is running but URL cant be reached
body: <p>I am newbie to Docker. I have created Jenkins instance with Docker with jdk1.8 latest  image but the URL get down after sometime while the containers are still running. It works after I restart docker service but it also get down eventually after sometime .</p>
  <p>Dockerfile</p>
  <pre><code>Using official docker image jenkins/jenkins:latest-jdk8 , the only customized item is addition of plugins through Jenkins plugin cli in the image.
  </code></pre>
  <p>To run the instance, docker compose is used with minimal configuration mentioned in image document.</p>
  <p>docker-compose.yaml</p>
  <pre><code>version: &quot;3.3&quot;
  services:
  mylocaljenkins:
    image: jenkins/jenkins:latest-jdk8
    container_name: jc
    privileged: true
    restart: unless stopped
    user: root
    port:
      - &quot;8080:8080&quot;
      - &quot;50000:500000&quot;
    volumes:
      -/root/mount:/var/jenkins
  </code></pre>