Can't run webapplication on tomcat using Docker
<p>I am trying to show on my browser the webapp I've created for a school project.
First of all, I've put my Dockerfile and my .war file in the same folder <code>/home/giorgio/Documenti/dockerProject</code>. I've written in my Dockerfile the following:</p>

<pre><code># Pull base image
From tomcat:7-jre7

# Maintainer
MAINTAINER "xyz &lt;xyz@email.com"&gt;

# Copy to images tomcat path
RUN rm -rf /usr/local/tomcat/webapps/ROOT
COPY file.war /home/giorgio/Documenti/apache-tomcat-7.0.72/webapps/
</code></pre>

<p>Then I've built the image with the command from the ubuntu shell:</p>

<pre><code>docker build -t myName /home/giorgio/Documenti/dockerProjects
</code></pre>

<p>Finally, I've run on the shell:</p>

<pre><code>docker run --rm -it -p 8080:8080 myName
</code></pre>

<p>Now, everything works fine and it doesn't show any errors, however when I want to reach <code>localhost:8080</code> from my browser anything shows up, nevertheless tomcat has started running perfectly fine.</p>

<p>Any thoughts about a poossible problem which I can't see?
Thank you!</p>