Run apache tomcat server in docker container

I have a .war file I would like to run and start a server inside a docker container. Tomcat 8 with java 8.

I am using

  • Is it possible to install Visual Studio in a Windows Container
  • Sendmail in DOCKERized PHP-Application doesn't work
  • Apache docker container - Invalid command 'RewriteEngine'
  • .NET Core Container Built with VSTS won't run on Linux
  • How to remove multiple docker images with the same imageID?
  • Docker volumes mount binding permissions difference between maven build and docker cli
  • docker pull komu/tomcat8-java8
    

    Then I am not sure how to start the docker container containing my .war file. I also have a URL for it I would like to use.

  • docker tomcat directory not found?
  • Running a Shell script from php
  • Getting Mac address from Docker Container
  • Mount current directory as volume in Docker on Windows 10
  • Mount OpenAFS host volume in GitLab-CI runner to make it accesible in Docker
  • How to point asp.net web.config connections to a docker container for database connections?
  • One Solution collect form web for “Run apache tomcat server in docker container”

    Nice long post about it, the part you want is about half way down: Installing Java
    http://blogs.atlassian.com/2013/06/deploy-java-apps-with-docker-awesome/

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.