anchor.diff:  ifdef::public[docker run -d --name wildfly -p 8080:8080 -p 9990:9990 arungupta/wildfly-management]
   ----
   +
  -There is no mounted volume in this case but an additional port is exposed. The WildFly image that is used makes it easier for you to deploy using the management API. It has tweaked start script which changes the management interface according to the behavior described in the first sentence.
  +In addition to application port 8080, the administration port 9990 is exposed as well. The WildFly image that is used has tweaked the start script such that the management interface is bound to 0.0.0.0.
   +
   . Create a new server adapter in JBoss Developer Studio and name it `WildFly 9.0.0-Management'. Specify the host name as `dockerhost'.
   +
  
positive.code: 
  ### Deploy Application Using Management API
  
  A standalone WildFly process, process can be configured to listen for remote management requests using its `native management interface'. The CLI tool that comes with the application server uses this interface, and user can develop custom clients that use it as well. In order to use this, WildFly management interface listen IP needs to be changed from 127.0.0.1 to 0.0.0.0 which basically means, that it is not only listening on the localhost but also on all publicly assigned IP addresses.
  
  . Start another WildFly instance again:
  +
  
negative.code: 
  ### Deploy Application Using Web Console
  
  WildFly comes with a web-based administration console. It also relies on the same management APIs that are used by JBoss Developer Tools and the CLI. It provides a simple and easy to use web-based console to manage WildFly instance. For a Docker image, it needs to be explicitly enabled as explained in <<Enabling_WildFly_Administration>>. Once enabled, it can be accessed at http://dockerhost:9990.
  
  .WildFly Web Console
  image::../images/console1.png[]
  
  Username and password credentials are shown in <<WildFly_Administration_Credentials>>. 
  
  NOTE: You may like to stop and remove the Docker container running WildFly. This can be done as `docker ps -a | grep wildfly | awk '{print $1}' | xargs docker rm -f`. Start a new container as `docker run -d --name wildfly -p 8080:8080 -p 9990:9990 arungupta/wildfly-management`.
  
  Deploy the application using the console with the following steps:
  
  . Go to `Deployments' tab.
  +
  .Deployments tab in WildFly Web Console
  image::../images/wildfly9-deployments-tab.png[]
  