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

  • docker: official ubuntu 14.04 image
  • Container already stopped error on ECS
  • Point my domain to specific docker container with apache
  • what is the exact difference between YAML version 1 and YAML version 2?
  • Maintaining and supporting container base images
  • cAdvisor: How to run it with a remote docker API?
  • 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 does not free up space on clean operations
  • ADD/COPY files with sbt-native-packager's docker support
  • Docker/Dockerfile: Using ENTRYPOINT for git clone
  • socket.error: timed out (Celery & RabbitMQ running in docker containers)
  • Building a new docker image with the same name as an existing ones
  • docker plugin not running parallel builds
  • 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.