title: Docker Container(Dockerfile from other image) immediately exit - It is all about Dockerfile not command
body: <p>I am trying to run <code>Redmin</code> via <code>docker</code>.</p>
  
  <p>Here is what I am going to do</p>
  
  <ol>
  <li>Copy <code>redmine:latest</code> docker image to custom image</li>
  <li>Do some extra setting and make a container</li>
  <li>Run the custom docker container</li>
  </ol>
  
  <p>So I made <code>Dockerfile</code> like </p>
  
  <pre><code>FROM redmine
  CMD ["echo", "Redmine is ready!"]
  </code></pre>
  
  <p>Then I built image with <code>docker build -t test .</code>.(In the <code>Dockerfile</code> folder)</p>
  
  <p>After that, <code>docker run -d --name=test -p 8080:3000 test</code>.</p>
  
  <p>I expected can find <code>test</code> docker container is <code>run</code> state, but it is <code>exit(0)</code>.</p>
  
  <p>How can I make this container keep alive?</p>
  
  <p>FYI, <code>docker run -d --name=test -p 8080:3000 redmine</code> works fine.</p>