How Do You Deploy the WildFly Application Server in Docker?

Problem scenario
You want to prepare for WildFly Swarm to run Java EE programs.  You want to deploy Red Hat's WildFly application server in a Docker container.  You are running a Linux server.  What do you do?

Solution
Background
The regular JBoss Application server was renamed to Wildfly.  Do not confuse the JBoss application server with the JBoss web server.  The JBoss Enterprise Application server still exists.

Prerequisites
This assumes you have already installed Docker.  To install Docker on Ubuntu see this posting; to install Docker on a RedHat server see this posting.

Procedures
#1  Run these three commands from the Linux server:
docker run -it jboss/wildfly
docker run -p 8080:8080 -p 9990:9990 -it jboss/wildfly /opt/jboss/wildfly/bin/standalone.sh -bmanagement 0.0.0.0
curl http://icanhazip.com # to find the external IP address of the Docker host

#2  Open a web browser.  Go to this URL where x.x.x.x is the external IP address found above:  http://x.x.x.x:9990

Leave a comment

Your email address will not be published.