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

  • Invoke docker container from Jenkins pipeline which is also running as docker container on Windows for docker (for Windows 10)
  • customized Docker mongodb image gets stuck : can't stop, kill, open
  • Bluemix Dev Ops: Building a project with private git submodules
  • Docker - Not able to telnet Linked Container
  • How to run docker container from remote api?
  • What is the best practice of docker + ufw under Ubuntu
  • 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.

  • Links apps in Docker Swarm Mode
  • Use Docker rather than native/homebrew on Mac?
  • docker-compose per microservice in local and production enironments?
  • No space left for new subnet when Docker network get address from Flannel
  • Docker .bashrc service HTTP request fail
  • gitlab-ci-multi-runner 9.2.0: ERROR: Job failed: exit code 252
  • 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

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