title: Error --- Docker wildfly console ports not by default
body: <p>I have a problem with a docker wildfly container. The problem is the following, I want to launch the container with the different ports that are loaded by default 8080 for the application and 9090 for the console. I have managed to change the default port of the application, with this instruction</p>
  
  <pre><code>docker run -P -d jboss / wildfly /opt/jboss/wildfly/bin/standalone.sh -b 0.0.0.0 -bmanagement 0.0.0.0
  </code></pre>
  
  <p>-P flag map any network ports inside the image it to a random high port from the range 49153 to 65535 on Docker host</p>
  
  <p>But I can not access the administration console, on the other hand I have created a dockerfile with these values</p>
  
  <pre><code>FROM jboss / wildfly
  RUN /opt/jboss/wildfly/bin/add-user.sh admin Admin # 70365 --silent
  CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-b", "0.0.0.0", "-bmanagement", "0.0.0.0", "-Djboss.socket.binding.port-offset = 5 "]
  </code></pre>
  
  <p>And another one by removing the offset values</p>
  
  <pre><code>FROM jboss / wildfly
  RUN /opt/jboss/wildfly/bin/add-user.sh admin Admin # 70365 --silent
  CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-b", "0.0.0.0", "-bmanagement", "0.0.0.0"]
  </code></pre>
  
  <p>I can lift the container but I still do not have access to the Wildfly management console. What can I do to get the console up?</p>