anchor.diff:  docker run -it <INSTRUCTOR_IP>:5000/wildfly
   ----
   
  -Seems the server started correclty. We can check it by issuing the docker ps command which retrieves the images process which are running and the ports engaged by the process:
  +Seems the server started correctly. We can check it by issuing the `docker ps` command which retrieves the images process which are running and the ports engaged by the process:
  +
   [source, text]
   ----
   docker ps
  
positive.code: .Docker Layers
  image::images/plain-wildfly0.png[]
  
  In our particular case, the jboss/wildfly image extends the link:https://github.com/jboss-dockerfiles/base/blob/master/Dockerfile[jboss/base-jdk:7] image which adds the OpenJDK distribution on top of the link:https://github.com/jboss-dockerfiles/base/blob/master/Dockerfile[jboss/base] image.
  The base image is used for all JBoss community images. It provides a base layer that includes:
  
  . A jboss user (uid/gid 1000) with home directory set to /opt/jboss
  . A few tools that may be useful when extending the image or installing software, like unzip.
  
  The jboss/base-jdk:7 image adds:
  
  . Latest OpenJDK distribution
  . And adds a JAVA_HOME environment variable
  
  When the download is done, you can list the images again and will see the following:
  
  
negative.code: docker run -it -p 8080:8080 <INSTRUCTOR_IP>:5000/wildfly
  ----
  
  The format is `-p hostPort:containerPort`.
  
  Now we're ready to test http://dockerhost:8080 again. This works with the exposed port, as expected.
  
  .Welcome WildFly
  image::images/plain-wildfly1.png[]
  
  ### Running the Java EE 7 Samples
  
  link:https://github.com/javaee-samples/javaee7-hol[Java EE 7 Hands-on Lab] has been delivered all around the world and is a pretty standard application that shows design patterns and anti-patterns for a typical Java EE 7 application.
  Docker containers allows you to simplify application delivery by packaging all the key components together in an image. So how do you get the first feel of this Java EE 7 application with Docker ?
  
  Pull the Docker image that contains WildFly and pre-built Java EE 7 application WAR file as shown:
  
  [source, text]
  ----
  docker pull <INSTRUCTOR_IP>:5000/javaee7-hol
  ----
  
  The javaee7-hol link:https://github.com/arun-gupta/docker-images/blob/master/javaee7-hol/Dockerfile[Dockerfile] is based on `jboss/wildfly` and adds the movieplex7 application as war file.
  
  Run it as:
  
  [source, text]
  ----
  docker run -it -p 8080:8080 arungupta/javaee7-hol
  ----
  
  See the application in action at http://dockerhost:8080/movieplex7/
  
  ### Ticket Monster
  
  TicketMonster is an example application that focuses on Java EE6 - JPA 2, CDI, EJB 3.1 and JAX-RS along with HTML5 and jQuery Mobile. It is a moderately complex application that demonstrates how to build modern web applications optimized for mobile & desktop. TicketMonster is representative of an online ticketing broker - providing access to events (e.g. concerts, shows, etc) with an online booking application.
  
  Apart from being a demo, TicketMonster provides an already existing application structure that you can use as a starting point for your app. You could try out your use cases, test your own ideas, or, contribute improvements back to the community.
  