Docker Community Forums

Share and learn in the Docker community.

How to access the java application in container

docker

(Condescendent) #1

I have a container with dotCMS java application running. I checked the running processes and it looks like the java application is running. However, when i type “127.0.0.1:8080” it doesn’t show me anything webpages.

Could anyone here help me with this ?

thanks.

vagrant@localhost ~ $ docker run -d -ti --name=jason_dotcms jorith88/dotcms
90689a435f46dc1f925cbaac2ea91a5c9559e5a43e177d0e7471a65ecdceb34e
vagrant@localhost ~ $ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
90689a435f46 jorith88/dotcms “/opt/dotcms/bin/star” 6 seconds ago Up 4 seconds 8000/tcp, 8009/tcp, 8080/tcp jason_dotcms
vagrant@localhost ~ $ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
90689a435f46 jorith88/dotcms “/opt/dotcms/bin/star” 2 minutes ago Up 2 minutes 8000/tcp, 8009/tcp, 8080/tcp jason_dotcms
c9a153cec6a8 jorith88/dotcms “/opt/dotcms/bin/star” 10 minutes ago Exited (143) 3 minutes ago cocky_galileo
2f369dd75cc8 jorith88/dotcms “/opt/dotcms/bin/star” 24 minutes ago Exited (130) 16 minutes ago angry_shannon
vagrant@localhost ~ $ docker top
"docker top" requires at least 1 argument(s).
See ‘docker top --help’.

Usage: docker top CONTAINER [ps OPTIONS]

Display the running processes of a container
vagrant@localhost ~ $ docker top jason_dotcms
UID PID PPID C STIME TTY TIME CMD
root 28520 28507 99 00:57 pts/2 00:03:22 /usr/lib/jvm/java-1.8-openjdk/bin/java -Djava.util.logging.conf ig.file=/opt/dotcms/dotserver/tomcat-8.0.18/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.awt.headless=true -Xverify:none -Dfile.encoding=UTF8 -server - Xmx1G -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -javaagent:/opt/dotcms/dotserver/tomcat-8.0.18/webapps/ROOT/WEB-INF/lib/dot.jamm-0.2.5_2.jar -Ddotserver=dotcms -Djava.endorsed.dirs=/opt/dotcms/dotse rver/tomcat-8.0.18/endorsed -classpath /opt/dotcms/dotserver/tomcat-8.0.18/bin/bootstrap.jar:/opt/dotcms/dotserver/tomcat-8.0.18/bin/tomcat-juli.jar -Dcatalina.base=/opt/dotcms/dotserver/tomcat-8.0.18 -D catalina.home=/opt/dotcms/dotserver/tomcat-8.0.18 -Djava.io.tmpdir=/opt/dotcms/dotserver/tomcat-8.0.18/temp org.apache.catalina.startup.Bootstrap start
vagrant@localhost ~ $