Docker Community Forums

Share and learn in the Docker community.

Access website outside the container and host

(bk) #1

Hello ,

I am hosting a website in Oracle Iplanet server inside the Docker container. I am facing the below issues

  1. The container exits in sometime . I am not able to find the error.
  2. I did a "

docker run -it test /bin/bash

." I was able to getin the container . there I was able to access my site and its hosted in 8999 port . I was able to access by curl http://hostnameOfContainer:8999/ . Now how can I access this outside the container . What should I add in the Dockerfile . Do I have to add

Expose 8999

Appreciate your help and suggestions.