Docker Community Forums

Share and learn in the Docker community.

Help! Accessing JBoss in container?

Running Docker v 20.10.10 with Alpine Linux v 3.11

I’m unable to access my web application, running in a container on JBoss EAP 7.

I run the following commands:

docker run --rm -it -p 8080:8080 getting-started
apk add openjdk8-jre
docker cp jboss-eap-7.0.0-installer.jar [container]:/home
java -jar /home/jboss-eap-7.0.0-installer.jar (and complete installation process with standard configuration)
docker cp myapp.war [container]:/root/EAP-7.0.0/standalone/deployments

I then try to open http://localhost:8080/myapp/login.jsp, but I get the response that localhost didn’t send any data. Any idea what I’m doing wrong?