Tomcat with Docker

I am testing out running a tomcat8 on my Mac. I have the following Dockerfile:

FROM tomcat:8-jre7

MAINTAINER "Sonam Lastname <sonam@mymail.com>"

When I run the Docker container with the following command:

  • Dockerize wordpress
  • Docker: How does this (not) work?
  • How do I restart a Docker container/image/machine?
  • Docker container apt-get install can't find package
  • How to correctly configure multi-services docker-compose
  • Connecting a Dockerized MongoDb instance, behing a reverse Nginx proxy on EC2
  • docker run -d -P sonam/docker-webapp
    

    I check for the docker process by

    docker ps -l
    

    and see the port mapped at:

    0.0.0.0:32769->8080/tcp
    

    I am not able to access the tomcat page with localhost:32769 (and even tried to 8080 port).

    thanks

    -Sonam

  • Access jboss 8080 port inside docker container
  • Docker: mounting volume and run node apps
  • Gitlab, docker and sendmail ports
  • Docker-compose build blocked after saying “Building <service>”
  • Marathon not loading docker container: Failed to get resource statistics for executor
  • How to run executable jar in docker
  • One Solution collect form web for “Tomcat with Docker”

    Docker runs in a virtual machine when on Mac. Tomcat will listen to that network interface.

    You can run docker-machine ip <name of your docker machine> and access it via that IP instead of localhost.

    If on boot2docker, it is similar: boot2docker ip.

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