title: Tomcat not running on docker image
body: <p>I installed tomcat7 on the image using Dockerfile through the command :</p>
  
  <pre><code>MAINTAINER Abc Xyz &lt;abc@xyz.com&gt;
  RUN apt-get -qq update
  RUN apt-get -y install openjdk-7-jre
  RUN apt-get -y install tomcat7 
  EXPOSE 8080
  </code></pre>
  
  <p>When I build the image and try to run the following command :</p>
  
  <pre><code>sudo docker run -d -P abcxyz/tomcat service tomcat7 start
  </code></pre>
  
  <p>I don't get to see the tomcat page on the port to which it is mapped (say 49153)...
  And when I run as a bash in the image and I try :</p>
  
  <pre><code>service tomcat7 start
  </code></pre>
  
  <p>Then also it fails to start the tomcat7 server.
  I think that the problem is that image is unable to start the tomcat7 server. And I heard that docker images can't run any upstart services though I am not sure.</p>
  
  <p>Anybody has any idea how to solve it?
  Thanks.</p>